Browse Source

平台和目录问题

aQiu 3 months ago
parent
commit
b0f1c05ae5

+ 0 - 1
src/main/java/org/example/mybatisplus/tools/WordToPdfUtil.java

@@ -53,7 +53,6 @@ public class WordToPdfUtil {
 // 设置字体加粗
             tocStyle1.getFont().setBold(true);
             tocStyle1.getFont().setSize(9); // 可以设置其他字体属性,如大小
-
             doc.updateFields();//更新目录
             doc.save(wordPath, SaveFormat.DOCX);
             // 将Word文档保存为PDF格式,写入到之前创建的PDF文件中。

+ 1 - 1
src/main/resources/platform_template.xml

@@ -33,7 +33,7 @@
         <o:ICV dt:dt="string">85D406B7593D407C888A33BB1352E686_13</o:ICV>
         <o:KSOTemplateDocerSaveRecord dt:dt="string">eyJoZGlkIjoiMmZlN2IzYmRhZjk1NzA0MzY5NmI3ZjdhYTgxYTcxYTkiLCJ1c2VySWQiOiIxNjE1NDU2NTEyIn0=</o:KSOTemplateDocerSaveRecord>
     </o:CustomDocumentProperties>
-    <w:fonts>
+    <w:fonts> 
         <w:defaultFonts w:ascii="Times New Roman" w:fareast="宋体" w:h-ansi="Times New Roman" w:cs="Times New Roman"/>
         <w:font w:name="Times New Roman">
             <w:panose-1 w:val="02020603050405020304"/>