Forráskód Böngészése

fix 会议,活动,通知修改好

Administrator 1 éve
szülő
commit
dc4c582b59

+ 3 - 3
ruoyi-common/src/main/java/com/ruoyi/common/utils/PDFUtil.java

@@ -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)
         {