列印PDF [英] Print a PDF

查看:58
本文介绍了列印PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种以编程方式从C#程序中打印(到打印机)PDF文件的方法.

我的解决方案很差,需要安装Adobe Acrobat Reader,并且在打印时它会打开一个新的acrobat阅读器窗口,这很烦人.有没有更好的办法?我一直在寻找一些图书馆,但没有找到.

一个最佳解决方案是将PDF文档接受为 byte [] 数组,但是如果需要,我可以将其临时保存为高清文件.

PDF是在其他位置创建的,所以我对库创建的文件不感兴趣,仅打印它.

I'm looking for a way to print (to a printer) a PDF file from within a C# program, programatically.

I have a poor solution which requires adobe acrobat reader be installed, and while printing it opens up a new acrobat reader window which is quite annoying. Is there a better way? I've been searching for some library but not found one. Suggestions?

An optimal solution would accept the PDF document as a byte[] array, however I could temporarily save it as a file on hd if required.

The PDF is created elsewhere, so I'm not interested in libraries to create the file, only print it.

推荐答案

http://msdn.microsoft.com/en-us /library/aa609374.aspx


这篇关于列印PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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