|
@@ -68,7 +68,7 @@ public class PDFUtil {
|
|
|
try
|
|
|
{
|
|
|
// 宋体资源文件路径,可以从C://Windows//Fonts//simsun.ttc拷贝到相应目录下
|
|
|
- URL path = PDFUtil.class.getResource("/usr/share/fonts/chinese/TrueType/simsun.ttc");
|
|
|
+ URL path = PDFUtil.class.getResource("/font/simsun.ttc");
|
|
|
return BaseFont.createFont(path + ",0", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
|
|
|
|
|
// 本地测试:使用windows自带的宋体文件
|