itext itextpdf 版本概要介绍
生成PDF报表的Java组件--iText
网上介绍的多是一些实例和使用方法,对于这个版本的使用需要注意的点主要是版本问题。
iText版本历史
2.*直接过渡到5.*,命名空间等完全变化
版本文件
旧版 itext2.1.7.jar itext-rtf-2.1.7.jar iTextAsian.jar
新版本 itextpdf.5.*.jar itext-asian.jar http://sourceforge.net/projects/itext/files/iText/ 这个上面的每个发行包有详细说明
其中*asian*是处理CJK文字的
以前处理WORD的组件也发生了很大变化
http://stackoverflow.com/questions/1876678/itext-5-0-0-where-did-rtf-and-html-go
According to the iText website, in v5.0.0 they deliberately removed the RTF and HTML writers. On their history page (http://itextpdf.com/history/)
First, visit http://mirrors.ibiblio.org/pub/mirrors/maven2/com/lowagie/itext-rtf/2.1.7/itext-rtf-2.1.7.jar to get itext-rtf.jar. This has the entire rtf package, however it is not sufficient to work with RTF documents. One class needed quite commonly when using the rtf package is com.lowagie.text.Document which is not included in the itext-rtf.jar distribution.
Secondly, visit http://grepcode.com/snapshot/repo1.maven.org/maven2/com.lowagie/itext/2.1.7. Here you want to download itext-2.1.7.jar. This is the itext jar file you will need in order to work with the iText-rtf library. This is different than the current iText which now manages only pdf documents. At 5.0.0, rtf broke off and pdf kept the current numbering system. The rtf version number restarted and the rtf package now requires a different iText which will have the same version number as the rtf version number.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步