是否有 iText 的 Java PDF 创建替代方案?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1377135/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Are there any Java PDF creation alternatives to iText?
提问by Mike C.
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 的 Java 库可以处理将大量数据渲染为 PDF?
采纳答案by Yishai
回答by Thorbj?rn Ravn Andersen
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.
这需要花钱,但如果您有现有的解决方案,那可能是最便宜的。
回答by Romain Linsolas
Asposeoffers 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...
但是,它不是免费软件...
回答by Jeroen van Bergen
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 在处理大量数据时通常需要更多内存。
回答by mark stephens
Qoppa and Crionics both offer commercial tools to create PDFs.
Qoppa 和 Crionics 都提供商业工具来创建 PDF。
回答by Paul Jowett
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. DocmosisCommunity 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.
这对您来说可能有点晚了 Mike C. 但如果其他人有类似的大文档低占用空间要求和重新分配要求那么值得分享。 Docmosis社区版可以自由重新分发,并且可以生成具有恒定内存占用(基于流的处理)的非常大的文档。您(或您的客户 - 因为您暗示重新分发)必须愿意在某处安装 OpenOffice 以允许转换。
回答by Matthias
回答by sherpya
try pdfjet is bsd licensed and there is also a commercial version with more features http://pdfjet.com/os/edition.html
尝试 pdfjet 是 bsd 许可的,还有一个具有更多功能的商业版本http://pdfjet.com/os/edition.html