- 浏览: 3508473 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (1491)
- Hibernate (28)
- spring (37)
- struts2 (19)
- jsp (12)
- servlet (2)
- mysql (24)
- tomcat (3)
- weblogic (1)
- ajax (36)
- jquery (47)
- html (43)
- JS (32)
- ibatis (0)
- DWR (3)
- EXTJS (43)
- Linux (15)
- Maven (3)
- python (8)
- 其他 (8)
- JAVASE (6)
- java javase string (0)
- JAVA 语法 (3)
- juddiv3 (15)
- Mule (1)
- jquery easyui (2)
- mule esb (1)
- java (644)
- log4j (4)
- weka (12)
- android (257)
- web services (4)
- PHP (1)
- 算法 (18)
- 数据结构 算法 (7)
- 数据挖掘 (4)
- 期刊 (6)
- 面试 (5)
- C++ (1)
- 论文 (10)
- 工作 (1)
- 数据结构 (6)
- JAVA配置 (1)
- JAVA垃圾回收 (2)
- SVM (13)
- web st (1)
- jvm (7)
- weka libsvm (1)
- weka屈伟 (1)
- job (2)
- 排序 算法 面试 (3)
- spss (2)
- 搜索引擎 (6)
- java 爬虫 (6)
- 分布式 (1)
- data ming (1)
- eclipse (6)
- 正则表达式 (1)
- 分词器 (2)
- 张孝祥 (1)
- solr (3)
- nutch (1)
- 爬虫 (4)
- lucene (3)
- 狗日的腾讯 (1)
- 我的收藏网址 (13)
- 网络 (1)
- java 数据结构 (22)
- ACM (7)
- jboss (0)
- 大纸 (10)
- maven2 (0)
- elipse (0)
- SVN使用 (2)
- office (1)
- .net (14)
- extjs4 (2)
- zhaopin (0)
- C (2)
- spring mvc (5)
- JPA (9)
- iphone (3)
- css (3)
- 前端框架 (2)
- jui (1)
- dwz (1)
- joomla (1)
- im (1)
- web (2)
- 1 (0)
- 移动UI (1)
- java (1)
- jsoup (1)
- 管理模板 (2)
- javajava (1)
- kali (7)
- 单片机 (1)
- 嵌入式 (1)
- mybatis (2)
- layui (7)
- asp (12)
- asp.net (1)
- sql (1)
- c# (4)
- andorid (1)
- 地价 (1)
- yihuo (1)
- oracle (1)
最新评论
-
endual:
https://blog.csdn.net/chenxbxh2 ...
IE6 bug -
ice86rain:
你好,ES跑起来了吗?我的在tomcat启动时卡在这里Hibe ...
ES架构技术介绍 -
TopLongMan:
...
java public ,protect,friendly,private的方法权限(转) -
贝塔ZQ:
java实现操作word中的表格内容,用插件实现的话,可以试试 ...
java 读取 doc poi读取word中的表格(转) -
ysj570440569:
Maven多模块spring + springMVC + JP ...
Spring+SpringMVC+JPA
http://itext-general.2136553.n4.nabble.com/Asian-font-not-recognized-after-update-td2991134.html
我们使用国语的时候,将要把加入亚洲语言的一个包,而这个包只支持到2.X,后续版本的升级中,
这个包名变掉了,因而需要我们寻找到新的包进行添加到应用中。
com.itextpdf.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.
Hi all,
I just recently updated the iText.jar for my program from iText 2.1.7 to iText 5.0.4. There had been quite some changes and one of them is bothering me right now and I can't figure out why. I used to be able to have my program function correctly and generates a PDF file with chinese characters. Code snippit:
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED); Font fontChinese = new Font(bfChinese, 13, Font.NORMAL); . . . After I did the update, this line of code no longer works. It's throwing me this exception: com.itextpdf.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized. I already imported iTextAsian.jar (as it worked for me before the update). Thanks! John |
4767 posts
|
We will probably ban users with a hotmail or gmail address
in the future, so it's probably better to use you Wipro address so that we know who we are talking to, Mr. Supreme... Also: you should subscribe to the list. On 12/10/2010 7:01, supremelmfz wrote: > After I did the update, this line of code no longer works. It's throwing me > this exception: > > com.itextpdf.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' > is not recognized. > > I already imported iTextAsian.jar (as it worked for me before the update). I think you are using the old iTextAsian.jar. In the old iTextAsian.jar there are directories com/lowagie/text/pdf/fonts In the new iTextAsian.jar there are directories com/itextpdf/text/pdf/fonts The new iTextAsian.jar won't work for the old iText, and vice versa. |
评论
2 楼
endual
2012-11-08
禀圣含华 写道
我改了这个iTextAsian包,还是一样的,求解啊
或许你要降低Itext.jar的版本
这里有资源
http://download.csdn.net/detail/endual/4482470
1 楼
禀圣含华
2012-11-07
我改了这个iTextAsian包,还是一样的,求解啊
发表评论
-
snmp
2020-04-13 11:07 397https://www.iteye.com/blog/zhan ... -
snmp
2020-04-10 21:33 526https://blog.csdn.net/qq_333141 ... -
服务器监控软件
2019-12-31 11:07 470[ERROR] org.hyperic.sigar.Sigar ... -
多数据源
2019-12-23 22:09 415https://gitee.com/baomidou/dyna ... -
mybatis多数据源
2019-12-23 18:09 410https://blog.csdn.net/qq_288042 ... -
springboot ueditor
2019-12-17 18:26 349https://blog.csdn.net/u01216982 ... -
java支持多数据源
2019-12-13 15:59 415spxcms是否支持多数据源 ... -
java日志
2019-12-10 12:01 260https://blog.csdn.net/peng_wei_ ... -
spring 多数据源
2019-12-06 09:55 391https://www.jb51.net/article/10 ... -
idea
2019-12-04 17:13 364https://blog.csdn.net/dengachao ... -
手机大屏
2019-11-30 16:02 305http://demo.demohuo.top/modals/ ... -
quarz配置
2019-11-08 11:48 422https://blog.csdn.net/BryantLmm ... -
mysql同步
2019-11-06 12:20 313https://blog.csdn.net/baidu_418 ... -
nginx配置多个服务
2019-11-04 20:35 713https://blog.csdn.net/everljs/a ... -
h5 加壳
2019-11-04 16:05 583https://jingyan.baidu.com/artic ... -
jeui 前端框架
2019-10-22 14:30 1123http://www.jemui.com/demo/ http ... -
jeui 维护
2019-10-22 14:29 2http://www.jemui.com/demo/ htt ... -
jeui 维护
2019-10-22 14:29 2http://www.jemui.com/demo/ -
jeui 维护
2019-10-22 14:29 2http://www.jemui.com/demo/ -
jeui 维护
2019-10-22 14:29 2http://www.jemui.com/demo/
相关推荐
解决 com.itextpdf.text.DocumentException: Font 'STSongStd-Light' with 'UniGB-UCS2-H' is not recognized. 亲测可用!
这是本人最近工作中的一个真实项目,将tif文件转换成pdf文件或者把多个tif文件合并成一个pdf文件。在这里跟大家分享下,希望能帮到哪位朋友。 内附详细代码及说明 和 itext包
java使用iText实现PDF文件添加水印功能的jar包
生成pdf的插件工具,绿色插件,请放心使用,C#使用方法:先引用itextsharp.dll动态链接库,然后using itextsharp.text等空间,即可使用。 引用: using iTextSharp; using iTextSharp.text; using iTextSharp.text....
// step 2: // we create a writer that listens to the document // and directs a PDF-stream to a file PdfWriter.getInstance(document, new FileStream("Chap0101.pdf", FileMode.Create)); ...
使用 dom4j 解析 XML;很不错的中文文档
java导出pdf需要用到iText库,iText是著名的开放源码的站点sourceforge一个项目,是用于生成PDF文档的一个java类库。通过iText不仅可以生成PDF或rtf 的文档,而且可以将XML、Html文件转化为PDF文件。 iText的安装...
// 2.获取输出流 OutputStream os = socket.getOutputStream(); ObjectOutputStream oos =new ObjectOutputStream(os); Choice c=new Choice(); c.choice(ois, oos); // 关闭资源 oos.close(); ...
22. //如果不用此包会抛出:java.lang.NoClassDefFoundError: org/dom4j/DocumentException 23. dom4j-1.6.1.jar 24. 25. //dwr必须 26. dwr.jar 27. 28. 29. //不用此包,在启动时招聘:java.lang....
解决:HSSFWorkbook 解决:java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions 解决:java.lang.NoClassDefFoundError: org/dom4j/DocumentException
java.lang.ClassNotFoundException: org.dom4j.DocumentException 缺少dom4j.jar包 加进去即可
目录一:项目分析二:实现步骤1.Dom4j工具类2.创建xml文件:3.Service层4.测试方法 一:项目分析 学生管理系统: 通过利用xml文件的存储功能来存储学生信息。再用dom4j解析器来对xml文件进行操作,也会用到一点xpath...
} catch (UnsupportedEncodingException | DocumentException e) { } catch (ClientException e) { } if(null == doc){ return null; } Element root = doc.getRootElement(); if(UtilValidator.isEmpty...
JAVA读XML:sax,dom,jdom,dom4j的比较以及选择.doc
import org.dom4j.DocumentException; import org.dom4j.Node; import org.dom4j.io.SAXReader; public class Demo4 { public static void main(String[] args) throws DocumentException { SAXReader reader=new ...
下面通过实例代码给大家介绍Tomcat解析XML和反射创建对象原理,具体代码如下所示: ...import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.SAXReader; public class ServerReadXML1
// )(Z QXML,*B(Z_,+, XML (E ...MalformedURLException, DocumentException { SAXReader reader = new SAXReader(); Document document = reader.read(new File(fileName)); return document; }