[英]What's the fastest .Net PDF library to dump a bunch of bitmaps to PDF?
I have around 10 System.Drawing.Bitmap
elements, which I want to dump to PDF. 我大约有10个
System.Drawing.Bitmap
元素,我想将其转储为PDF。 When combining them to a single bitmap, and then writing this to PNG, this takes me about 150 ms. 将它们组合为单个位图,然后将其写入PNG时,这大约需要150毫秒。
Now I want to create a PDF out of my bitmaps (4 pages), but with PDFSharp this takes >2.5 seconds. 现在,我想用位图(4页)创建一个PDF,但是使用PDFSharp,这需要> 2.5秒的时间。 Is there any library that is (way) faster at doing this?
是否有任何库(这样做)的速度更快?
NB. 注意 I draw the images on the surface in PDFSharp like:
我在PDFSharp的表面上绘制图像,如下所示:
XGraphics gfx = XGraphics.FromPdfPage(page1);
gfx.DrawImage(XImage.FromGdiPlusImage(/*bitmap*/));
edit Don't care about paid/free 编辑不在乎付费/免费
Try ITextSharp. 试试ITextSharp。 Very easy to use and learn.
非常易于使用和学习。
我还没有尝试过(性能方面或其他方面。),但是aspose有一个带有试用版的pdf组件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.