|
@@ -117,10 +117,10 @@ public class TestForExcel2PDF {
|
|
|
}
|
|
|
try {
|
|
|
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);
|
|
|
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
|