Open kulapika159 opened 3 years ago
Please double check if the new server has the underlying fonts (used in the template Excel file) installed. Also, the fonts folder should be accessible by the APIs seamlessly. Moreover, make sure to use latest version of the API (Aspose.Cells for Java v21.10) in the new server. If you still find the issue, kindly do share input Excel file and output PDF. Also, share correct PDF produced on previous server.
PS. you may zip the files and upload to some file sharing service (dropbox, Google drive, etc.) and provide the Download link here.
By the way, you may also post your issue on dedicated forums here.
this problem occurred when I changed the server,The two servers have the same fonts,the original server is ok
/**
@param desFilePathd pad 输出文件目录 */ public static void excel2pdf(String sourceFilePath, String desFilePathd) { if (!getLicense()) { // 验证License 若不验证则转化出的pdf文档会有水印产生 return; } try { Workbook wb = new Workbook(sourceFilePath);// 原始excel路径 // Worksheet worksheet = wb.getWorksheets().get(0); // worksheet.getPageSetup().setPaperSize(PaperSizeType.PAPER_A_4_SMALL); // System.out.println(worksheet.getPageSetup().getPaperSize());
}