我了解你的意思, 也知道你是要解决PDF的中文问题, 我记得iText也可以使用本地的True type字体的, 你仔细看看文档, 另外根据 http://www.lowagie.com/iText/tutorial/ch09.html 的说法, 使用 iTextAsian 的 PDF 不能做到字体嵌入, 客户端需要安装 Asian font pack from Adobe.Important:
The cmap-files and properties for these CJK fonts are in a separate jar. YOU NEED THIS JAR IN YOUR CLASSPATH!!! You can download this jar here: http://itext.sourceforge.net/downloads/iTextAsian.jar.
Remember that you can't embed these fonts in the PDF file using iText. Before trying to view a pdf with these Asian characters, you must download the Asian font pack from Adobe at: http://www.adobe.com/products/acrobat/acrrasianfontpack.html. or use a localized Windows. An alternative for this kind of fonts, is using a True Type Asian Font or Collection such as msgothic.ttc with the encoding BaseFont.IDENTITY_H or BaseFont.IDENTITY_V. You can use them exactly the same way as we did in the section about True Type Fonts and there will be no need to use the Asian font pack from Adobe because a subset of the font will be embedded in the document.

解决方案 »

  1.   

    仔细看看啦An alternative for this kind of fonts, is using a True Type Asian Font or Collection such as msgothic.ttc with the encoding BaseFont.IDENTITY_H or BaseFont.IDENTITY_V. You can use them exactly the same way as we did in the section about True Type Fonts and there will be no need to use the Asian font pack from Adobe because a subset of the font will be embedded in the document.
      

  2.   

    谢谢glassprogrammer()。 
    可是在上文中有一句:you must download the Asian font pack from Adobe at: http://www.adobe.com/products/acrobat/acrrasianfontpack.html. or use a localized Windows。
    “use a localized Windows”是否表明只要用的是已经本地化的windows(即中文windows)就可以浏览中文pdf了?我再去看一看True Type Fonts有关的内容。仍然需要iTextAsian.jar。
    谢谢。
      

  3.   

    再次谢谢glassprogrammer()的提醒,我已经用TrueType实现了中文的输入。
    现在可以不用iTextAsian.jar了。立刻揭帖。