itext itextpdf 版本概要介绍

生成PDF报表的Java组件--iText

网上介绍的多是一些实例和使用方法,对于这个版本的使用需要注意的点主要是版本问题。

iText版本历史 

http://itextpdf.com/history/ 

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.

posted @ 2012-12-16 15:01  2012  阅读(4949)  评论(0编辑  收藏  举报