简体   繁体   English

如何使用Acobat Reader在C#中打印pdf文档的第一页?

[英]How can i print first page of a pdf document in C# using Acobat Reader?

I want to print first page of a pdf document. 我想打印pdf文档的第一页。 Now i can pring all pages of pdf document. 现在,我可以将pdf文档的所有页面打印出来。 But i need to print firsft page. 但是我需要打印firsft页面。 I am using Acrobat Reader and my programming language is C#. 我正在使用Acrobat Reader,并且我的编程语言是C#。

if you can already print a pdf you might want to look at using iText sharp to extract the single page and then print it. 如果您已经可以打印pdf,则可以考虑使用iText sharp提取单页然后进行打印。

iTextsharp has a function ExtractPdfPage iTextsharp具有功能ExtractPdfPage

http://sourceforge.net/projects/itextsharp/ http://sourceforge.net/projects/itextsharp/

Not sure this is the most efficient way but if you can't instruct Acrobat to print one page through ole etc... 不确定这是最有效的方法,但是如果您无法指示Acrobat通过ole等打印一页,则...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM