使用C#从Acrobat获得PrintAsImage [英] PrintAsImage from Acrobat using C#

查看:482
本文介绍了使用C#从Acrobat获得PrintAsImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将pdf作为图像以c Sharp格式打印,但仍未解决.如果您能帮助我,将非常感谢.

在Acrobat Professional中执行相同操作的过程如下:
-Ctrl + P<显示打印对话框> ;;
-将打印机名称更改为"Adob​​e PDF";
-单击高级",然后选择打印为图像";
-设置完成,现在单击确定.
-处理将开始,并且在处理之间将显示另存为"对话框.
-之后,将PDF保存到指定位置.

我想使用c Sharp做同样的事情.我在参考中添加了Acrobat.dll,并在对象资源管理器中搜索了每个函数.我发现很少有可以使用默认打印机打印PDF的功能,但在我的情况下,打印名称应为& quot; Adob​​e PDF& quot;.

我虽然可以使用ManagementObject Class更改默认打印机,但如何选择另存为图像";以编程方式.

请尽快为我提供帮助.</pre>

I want to print pdf as image in c sharp which is still unsolved. It will be very thankfull if you help me with this.

Process of doing same thing in Acrobat Professional are given below:
- Ctrl + P <Display print dialog box>;
- Change Printer Name to "Adobe PDF";
- Click on Advance and select "Print As Image";
- Setting are completed, now click on OK.
- Processing will start and in between it will show a "Save As" dialog.
- After that PDF with be saved on specified location.

I wants to do same thing using c sharp. I have added Acrobat.dll in Reference and searching each and every function in Object Explorer. I found few function which can print PDF in using default printer but in my case print name should be &quot;Adobe PDF&quot;.

I though i can change default printer using ManagementObject Class but how will i select "Print As Image"; programmatically.

Pls help me in this as soon as possible.</pre>

推荐答案

3rdParty库的方式(我没有声称没有其他方式)-
检查一下.
http://homeofcox-cs.blogspot.com/2008/10/c-convert-pdf-to-image-format.html [
3rdParty libraries ways (I am not claiming there is no other way) -
check this out.
http://homeofcox-cs.blogspot.com/2008/10/c-convert-pdf-to-image-format.html[^]

or try using ImageMagick.

Hope this helps.


这篇关于使用C#从Acrobat获得PrintAsImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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