pdf比对Java,比较这些产品的PDF生成与Java内部要求:iText,Apache PDFBox或FOP?

There were questions on that but not recently and technology must have gone ahead since then.

Requirements:

generating pdf documents based on predefined template (I can use either pdf forms or xsl-fo)

being able to fill textual data

being able to fill graphical data (generated bar codes)

being able to alter pdf template in production environment without patching (recompiling)

generating pdf file to be saved in the database (as blob) and/or printed

open source/free

The options assumed are iText, PDFBox, FOP, anything else? What are recommendations based on the requirements above?

解决方案

iText; nowadays iText is a commercial library, the latest version is not for free anymore

FOP; I worked a lot with FOP. It's fairly resource intensive (Java > XML > XSLT > PDF) and complex PDFs become a nightmare ( may result in XSLTs with 20k+ LoC)

PDFBox; it seems to be the best alternative although I did not work with it in large projects

Did not check Flying Saucer yet

To conclude, I'd give PDFBox a try. Depending on your bar code requirements you may need to inline your barcode (font) into the PDF or distribute the font to your clients - take care of those issues.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值