.NET库,以打印PDF文件 [英] .NET library to print PDF files

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

问题描述

我后它可以接受已经创建的PDF文件并将其直接发送到打印机的文库。我不希望用户需要安装Adobe Reader或安装任何东西,应用程序将生成一个PDF,我想打印出来。

I am after a library which can accept an already created PDF file and send it directly to the printer. I don't want the user to need Adobe Reader or anything else installed, the application will generate a PDF and I want to print it.

推荐答案

对不起,我的第一个答案(因为删除 - FGITW回答说只是使用的 iTextSharp的)认为它是PDF FAQ#1的时候,其实它是PDF FAQ#〜5,过失......

Sorry, my first answer (since deleted -- FGITW answer saying just use iTextSharp) assumed it was PDF FAQ #1 when in fact it was PDF FAQ #~5, mea culpa...

有没有系统提供的原生PDF处理,所以外面使用的应用程序,如福昕 或Acrobat - 这得太快不应该打折 - 谁使用PDF的人都会有一个或另一个,将是挑剔哪一个是preFER因为他们并不都是平等的,尤其当你进入更先进的功能和其相关的许可和商业化计划。

There's no system-provided native PDF processing, so outside of using an app such as FoxIt or Acrobat -- which you shouldnt discount too quickly - people who use PDF will have one or the other and will be choosy about which one they prefer as they're not all equal, esp if you get into more advanced features and their associated licensing and monetisation schemes.

不知道是满足这一需求的任何具体的图书馆,虽然我上面链接到另一个问题,应该有一个很好的答案。 ...研究;久而久之... <一个href="http://stackoverflow.com/questions/273675/print-existing-pdf-or-other-files-in-c/1675144#1675144">An回答在另一个问题说<一HREF =htt​​p://PDFSharp.net相对=nofollow> PDFSharp 应该适合,的样本看起来简单。

Not aware of any specific libraries that address this requirement, though the other question I've linked to above should have a good answer. ... researches; time passes... An answer on the other question says PDFSharp should suit, the sample looks straightforward.

在反思的基础上看着Pdfsharp的常见问题Wiki, iTextSharp的也有类似的<一个href="http://pdfsharp.net/wiki/DocumentViewer-sample.ashx?HL=printing#Create_an_Image_from_the_Current_Page_4"相对=nofollow>的东西产生的TIFF /图片为PDFSharp了。

On reflection based on looking at Pdfsharp's FAQ wiki, iTextSharp has similar stuff for generating TIFFs/images as PDFSharp has.

其可以是或可以不是在范围是另一种产生和/或转换为例如,XPS文件,其中不具有内置于打印支持(pretty的肯定.NET 3.5,甚至更早它作为在客户端配置文件中的标准组件)。

An alternative which may or may not be in scope is to generate and/or convert to e.g., an XPS file, which does have built in printing support (pretty sure .NET 3.5, and possibly earlier have it as a standard component in the Client Profile).

这是不应该在这一切都被错过的一点是, Lowagie书(iText的在行动)是优秀的,如果你要阅读是做任何事情,写或提供PDF表单,你应该有它在你的书架。同样,如果你去了FLOSS库的路线,iText的,必须认真考虑。

One point that shouldnt be missed in this all is that the Lowagie book (iText In Action) is excellent and if you're going to be doing anything in reading, writing or providing PDF forms, you should have it on your shelf. Similarly, if you do go the FLOSS library route, iText has to be seriously considered.

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

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