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