Kaynağa Gözat

Merge branch 'branch-nt-1.0.1' of https://git.flowbb.cn/RK-Dev/fqgz-server into branch-nt-1.0.1

humuyu 3 yıl önce
ebeveyn
işleme
1eab08afe0

+ 1 - 0
eladmin-system/src/main/java/me/zhengjie/base/util/FileUploadUtil.java

@@ -465,6 +465,7 @@ public class FileUploadUtil {
 			FileUtils.deleteQuietly(new File(sourceFilePath));
 			return path;
 		} catch (Exception e) {
+			e.printStackTrace();
 			log.error("转换pdf失败:" + e.getLocalizedMessage());
 			return null;
 		}

+ 1 - 0
eladmin-system/src/main/java/me/zhengjie/base/util/HtmlConvertPdf.java

@@ -94,6 +94,7 @@ public class HtmlConvertPdf {
 
 		//引入指定字体,注意字体名需要和css样式中指定的字体名相同
 		String fontPath = HtmlConvertPdf.class.getClassLoader().getResource("").getPath().concat("font");
+		System.out.println(fontPath);
 		builder.useFont(new File(fontPath + "/simsun.ttf"), "SimSun", 1, BaseRendererBuilder.FontStyle.NORMAL, true);
 		builder.useFont(new File(fontPath + "/simfang.ttf"), "simfang", 1, BaseRendererBuilder.FontStyle.NORMAL, true);
 		builder.run();