|
@@ -47,7 +47,7 @@ public class PdfUtils { |
|
|
//临时文件输出路径 |
|
|
//临时文件输出路径 |
|
|
String filePath = directory.getAbsolutePath() + File.separator + "fileout"; |
|
|
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()){ |
|
|
if(!new File(filePath).exists()){ |
|
|
new File(filePath).mkdir(); |
|
|
new File(filePath).mkdir(); |
|
|
} |
|
|
} |
|
|