我如何获得MDI形式的显示文本文档(如Adobe Reader中的) [英] How do i get display text documents in mdi forms like in adobe reader

查看:67
本文介绍了我如何获得MDI形式的显示文本文档(如Adobe Reader中的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关如何使我的mdi表单表现得像Adobe Reader中的那样的帮助.我希望能够以与Adobe Reader中相同的方式显示和关闭只读文档.

I need assistance on how to make my mdi form behave like the one in the adobe reader. I want to be able to display and close read only documents in the same manner as is done in adobe reader.

推荐答案

您的问题不是很清楚.您要实现Adobe Reader的哪些功能?如果您要查看PDF文档,则需要使用免费的PDF库之一(iTextSharp是其中之一),或者从Adobe获取PDF规范的副本并编写自己的PDF处理程序.
Your question is not very clear. What features of Adobe Reader are you trying to implement? If you mean that you want to view PDF documents then you will need to use one of the free PDF libraries (iTextSharp is one), or get a copy of the PDF specification from Adobe and write your own PDF handler.


< pre><代码>< pre>< pre lang ="sql">使用PDFSharp非常简单.正式下载文件中的示例足以了解PDFSharp的功能.这是我用来将文件夹中的PDF集合合并为单个PDF文件的一小段代码.
1:PdfDocument inputDocument = 2:PdfReader.Open(file.FullName,PdfDocumentOpenMode.Import); 3:int计数= inputDocument.PageCount; 4:for(int idx = 0; idx& lt; count; idx ++)5:{6://从外部文档获取页面... 7:PdfPage页面= inputDocument.Pages [idx]; 8://...并将其添加到输出文档中. 9:outputDocument.AddPage(page); 10:} 11:12:outputDocument.Save(文件名);</pre>
< pre></pre></pre></code></pre>
<pre><code><pre><pre lang="sql">Using PDFSharp is very simple. the samples in the official download file are more than enough to learn the functionality of PDFSharp.here is a little piece of code I used to merge A collection of PDFs in a folder to a single PDF file.
1: PdfDocument inputDocument= 2: PdfReader.Open(file.FullName,PdfDocumentOpenMode.Import); 3: int count = inputDocument.PageCount; 4: for (int idx = 0; idx &lt; count; idx++) 5: { 6: // Get the page from the external document... 7: PdfPage page = inputDocument.Pages[idx]; 8: // ...and add it to the output document. 9: outputDocument.AddPage(page); 10: } 11: 12: outputDocument.Save(filename);</pre>
<pre></pre></pre></code></pre>


这篇关于我如何获得MDI形式的显示文本文档(如Adobe Reader中的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆