I'm having trouble with spire.XLS (Java version), converting excel file to pdf.
I am using Google's Noto Serif CJK JP.
In Windows 10 environment, it converted to pdf but when I check the pdf's font properties, it's not Noto Serif.
In Linux environment, it throws an error.
Both Windows 10 and Linux have Noto Serif CJK fonts installed.
By the way, I tried the latest Spire.XLS version 4.6.5.
Here's my code,
- Code: Select all
String excelFile = "test_excel.xlsx";
Workbook wb = new Workbook();
wb.loadFromFile(excelFile);
wb.getConverterSetting().setSheetFitToPage(true);
wb.saveToFile(excelFile.replace(".xlsx", ".pdf"), FileFormat.PDF);
Is it possible that the converted pdf file's font is also Noto Serif CJK?
Thanks and regards,