lyhzzz 2 years ago
parent
commit
935fb0b848
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/fdkankan/sale/util/pdf/TestForExcel2PDF.java

+ 4 - 4
src/main/java/com/fdkankan/sale/util/pdf/TestForExcel2PDF.java

@@ -117,10 +117,10 @@ public class TestForExcel2PDF {
         }
         }
         try {
         try {
             Workbook wb = new Workbook(sourceFilePath);// 原始excel路径
             Workbook wb = new Workbook(sourceFilePath);// 原始excel路径
-            IndividualFontConfigs configs = new IndividualFontConfigs();
-            configs.setFontFolder("/usr/share/fonts/chinese", true);
-            LoadOptions loadOptions  = new LoadOptions();
-            loadOptions.setFontConfigs(configs);
+//            IndividualFontConfigs configs = new IndividualFontConfigs();
+//            configs.setFontFolder("/usr/share/fonts/chinese", true);
+//            LoadOptions loadOptions  = new LoadOptions();
+//            loadOptions.setFontConfigs(configs);
 
 
             FileOutputStream fileOS = new FileOutputStream(desFilePathd);
             FileOutputStream fileOS = new FileOutputStream(desFilePathd);
             PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
             PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();