I have checked all the logs and there are no abnormal prompts
- Code: Select all
//将文件转换为PDF
Workbook wb = new Workbook();
//引入Excel文件
wb.loadFromStream(inputStream);
wb.getConverterSetting().setSheetFitToPage(true);
wb.setWriteProtectionPassword(password);
wb.setOpenPassword(password);
wb.saveToFile(outputFilePath, FileFormat.PDF);