生成pdf设置中文字体出错 \simsun.ttc' with 'Identity-H' is not recognized或者type of font{0} is not recognized
错误写法:PdfFontFactory.createFont("C:\\Windows\\Fonts\\simsun.ttc", PdfEncodings.IDENTITY_H,false);BaseFont.CreateFont("C:\\Windows\\Fonts\\simsun.ttc", PdfEncodings.IDENTITY_H,false)这两种写法是不对的,路径后面...
原创
2019-08-31 15:51:38 ·
16550 阅读 ·
11 评论