在带有注释功能的C#Windows应用程序中显示PDF文件 [英] Show PDF file in C# Windows application with annotation facility
问题描述
我正在使用提供批注功能的Acrobat Reader 10.1.0.而且我想在C#应用程序中显示PDF文件,以便可以使用此批注功能.
为此,我提出了两种解决方案:
1.使用Web浏览器控件(System.Windows.Forms.WebBrowser),它会在我的C#应用程序中成功显示PDF文件.
2. Acrobat PDF Reader COM组件,它还可以在我的C#应用程序中成功显示PDF文件.
但是两种解决方案的问题是,我不能使用注释工具.在C#.NET应用程序中打开PDF时,由于注释被禁用.
注意:注释工具就像在PDF文件中添加注释,在PDF文件中突出显示一些文本.
问候
Pushkar
I am using Acrobat Reader 10.1.0 which provide annotation facility. And I want to show PDF file in my C# application so that I can use this annotation facility.
For this I approaches two solutions:
1. Use Web Browser control (System.Windows.Forms.WebBrowser), and it shows PDF file successfully in my C# application.
2. Acrobat PDF Reader COM component, and it also shows PDF file successfully in my C# application.
But the problem on both the solution is, I can''t use annotation facility. As annotation is disabled when PDF opened in C#.NET application.
NOTE: Annotation facility is like, add your comments in PDF file, highlight some text in PDF file.
Regards
Pushkar
推荐答案
我怀疑这样做的最佳方法(也许是唯一方法)是不在应用程序中显示PDF,而是在外部应用程序中打开它-例如Acrobat Read 10-并提供注释.
另一种选择是让您在应用程序中实现注释,并弄清楚如何自己将其添加到PDF文件中-相当多的工作,可以复制已存在的注释.
I suspect that the best (and probably only) way to do this is to not show the PDF in your app, but to open it in an external app - Acrobat Read 10 for example - and let it provide the annotation.
The other alternative is for you to implement annotations in your app and work out how to add them to the PDF file yourself - a fair amount of work, to duplicate something that exists.
这篇关于在带有注释功能的C#Windows应用程序中显示PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!