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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM