Browse Source

修改临时文件输出路径

master
CMM 1 year ago
parent
commit
19c451ddc7
2 changed files with 1 additions and 1 deletions
  1. BIN
      font/simsun.ttc
  2. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/utils/PdfUtils.java

BIN
font/simsun.ttc View File


+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/utils/PdfUtils.java View File

@@ -47,7 +47,7 @@ public class PdfUtils {
//临时文件输出路径
String filePath = directory.getAbsolutePath() + File.separator + "fileout";
//字体格式
String fontPath = ResourceUtil.getResource("template/simsun.ttc").getPath();
String fontPath = directory.getAbsolutePath() + File.separator + "font" + File.separator + "simsun.ttc";
if(!new File(filePath).exists()){
new File(filePath).mkdir();
}


Loading…
Cancel
Save