列印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.