是否有任何Java PDF创建替代iText?

时间:2021-09-06 21:11:17

I am trying to render about 100,000 - 80 column records through FOP and it tanks pretty much everytime (OutOfMemoryException). I know iText could handle that kind of load but I can't use it because of the LGPL license. Are there any alternative Java libraries to iText that can handle rendering a high volume of data to PDF?

我试图通过FOP渲染大约100,000 - 80列记录,并且每次都可以使用它(OutOfMemoryException)。我知道iText可以处理这种负载,但由于LGPL许可证,我无法使用它。 iText是否有可以处理大量数据到PDF的替代Java库?

8 个解决方案

#1


24  

There are commercial PDF generating libraries, such as BFO and ElegantJ. If you need open source, there is PDFBox, but I don't know if it is production ready.

有商业PDF生成库,如BFO和ElegantJ。如果你需要开源,有PDFBox,但我不知道它是否已准备就绪。

#2


2  

Have a look at RenderX for an alternative to FOP.

看看RenderX可以替代FOP。

It costs money, but if you have an existing solution in place that might be the cheapest.

这需要花钱,但如果你有一个现有的解决方案可能是最便宜的。

#3


2  

Have you tried to increase the amount of heap available to the JVM? OUtOfMemory while processing huge amounts of data usually calls for more memory.

您是否尝试增加JVM可用的堆量?处理大量数据时OUTOfMemory通常需要更多内存。

#4


1  

Aspose offers a PDF component for Java. Aspose is also used to create Word, Excel, PowerPoint... documents in Java (or .Net).

Aspose为Java提供了一个PDF组件。 Aspose还用于创建Java(或.Net)中的Word,Excel,PowerPoint ...文档。

However, it is not a free software...

但是,它不是一个免费软件......

#5


1  

Qoppa and Crionics both offer commercial tools to create PDFs.

Qoppa和Crionics都提供了创建PDF的商业工具。

#6


1  

There are some alternatives

有一些替代方案

http://www.ulimatbach.de/java/PDF-Bibliotheken.html

#7


1  

try pdfjet is bsd licensed and there is also a commercial version with more features http://pdfjet.com/os/edition.html

try pdfjet是bsd许可的,还有一个具有更多功能的商业版本http://pdfjet.com/os/edition.html

#8


-1  

This might be a little late for you Mike C. but in case others have simliar large document low footprint requirements and redistribution requirements then it's worth sharing. Docmosis Community edition can be freely redistributed and can produce very large documents with a constant memory footprint (stream based processing). You (or your customers - since you're implying redistribution) would have to be willing to install OpenOffice somewhere though to allow the conversion.

对于你来说,这可能有点晚了迈克C.但是如果其他人有类似的大文件低足迹要求和再分配要求,那么值得分享。 Docmosis Community版本可以*地重新分发,并且可以生成具有恒定内存占用量的非常大的文档(基于流的处理)。您(或您的客户 - 因为您暗示重新分发)必须愿意在某处安装OpenOffice以允许转换。

#1


24  

There are commercial PDF generating libraries, such as BFO and ElegantJ. If you need open source, there is PDFBox, but I don't know if it is production ready.

有商业PDF生成库,如BFO和ElegantJ。如果你需要开源,有PDFBox,但我不知道它是否已准备就绪。

#2


2  

Have a look at RenderX for an alternative to FOP.

看看RenderX可以替代FOP。

It costs money, but if you have an existing solution in place that might be the cheapest.

这需要花钱,但如果你有一个现有的解决方案可能是最便宜的。

#3


2  

Have you tried to increase the amount of heap available to the JVM? OUtOfMemory while processing huge amounts of data usually calls for more memory.

您是否尝试增加JVM可用的堆量?处理大量数据时OUTOfMemory通常需要更多内存。

#4


1  

Aspose offers a PDF component for Java. Aspose is also used to create Word, Excel, PowerPoint... documents in Java (or .Net).

Aspose为Java提供了一个PDF组件。 Aspose还用于创建Java(或.Net)中的Word,Excel,PowerPoint ...文档。

However, it is not a free software...

但是,它不是一个免费软件......

#5


1  

Qoppa and Crionics both offer commercial tools to create PDFs.

Qoppa和Crionics都提供了创建PDF的商业工具。

#6


1  

There are some alternatives

有一些替代方案

http://www.ulimatbach.de/java/PDF-Bibliotheken.html

#7


1  

try pdfjet is bsd licensed and there is also a commercial version with more features http://pdfjet.com/os/edition.html

try pdfjet是bsd许可的,还有一个具有更多功能的商业版本http://pdfjet.com/os/edition.html

#8


-1  

This might be a little late for you Mike C. but in case others have simliar large document low footprint requirements and redistribution requirements then it's worth sharing. Docmosis Community edition can be freely redistributed and can produce very large documents with a constant memory footprint (stream based processing). You (or your customers - since you're implying redistribution) would have to be willing to install OpenOffice somewhere though to allow the conversion.

对于你来说,这可能有点晚了迈克C.但是如果其他人有类似的大文件低足迹要求和再分配要求,那么值得分享。 Docmosis Community版本可以*地重新分发,并且可以生成具有恒定内存占用量的非常大的文档(基于流的处理)。您(或您的客户 - 因为您暗示重新分发)必须愿意在某处安装OpenOffice以允许转换。