Hello!
I have the following problem with PDF converter
com.spire.xls.Workbook workbook = new com.spire.xls.Workbook();
workbook.loadFromFile(outXlsxFilePath);
workbook.getConverterSetting().setSheetFitToPage(true);
// convert xlsx fail to pdf
Exception line---> workbook.saveToFile(outTmpPdfPath, FileFormat.PDF);
this give the stacktrace:
java.lang.IllegalStateException: Cannot found font installed on the system.
at com.spire.xls.packages.sprnZb.spr (Unknown Source)
at com.spire.xls.packages.sprnZb.spr (Unknown Source)
at com.spire.xls.packages.sprucA.spr (Unknown Source)
at com.spire.xls.packages.sprGhA.spr (Unknown Source)
at com.spire.xls.packages.sprtIA.spr (Unknown Source)
at com.spire.xls.packages.sprtIA.spr (Unknown Source)
at com.spire.xls.packages.sprtIA.spr (Unknown Source)
at com.spire.xls.packages.sprtIA.spr (Unknown Source)
at com.spire.xls.packages.sprtIA.spr (Unknown Source)
at com.spire.xls.packages.sprDhA.spr (Unknown Source)
at com.spire.xls.packages.sprDhA.spr (Unknown Source)
at com.spire.xls.core.spreadsheet.XlsWorkbook.spr (Unknown Source)
at com.spire.xls.core.spreadsheet.XlsWorkbook.spr (Unknown Source)
at com.spire.xls.Workbook.saveToFile(Unknown Source)
Using spire.xls.free version 2.2.0 with maven. The only font used in the xlsx is Arial, and that font is located on the ubuntu 20.04 server. Also this exception doesn't happen on another server with ubuntu 18.04, where there aren't almost any fonts installed.
Do you have any ideas how to remedy the issue?