|
|
@@ -44,13 +44,13 @@ public class PdfUtils { |
|
|
|
File directory = new File(""); |
|
|
|
//pdf输出路径 |
|
|
|
String absolutePath = directory.getAbsolutePath(); |
|
|
|
String linkPath = "\\pmapi\\src\\main\\resources"; |
|
|
|
String filePath = absolutePath + linkPath + "\\template\\fileout"; |
|
|
|
String linkPath = File.separator + "pmapi" + File.separator + "src" + File.separator + "main" + File.separator + "resources"; |
|
|
|
String filePath = absolutePath + linkPath + File.separator + "template" + File.separator + "fileout"; |
|
|
|
if(!new File(filePath).exists()){ |
|
|
|
new File(filePath).mkdir(); |
|
|
|
} |
|
|
|
//字体格式 |
|
|
|
String FONT = absolutePath + linkPath + "\\template\\simsun.ttc"; |
|
|
|
String FONT = absolutePath + linkPath + File.separator + "template" + File.separator + "simsun.ttc"; |
|
|
|
StringBuilder stringBuilder = new StringBuilder(); |
|
|
|
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(templateHtmlInputStream, StandardCharsets.UTF_8)); |
|
|
|
String line; |
|
|
|