We're using Spire.Xls to convert xlsx files to pdf and we get an error java.lang.NumberFormatException: For input string: "."
Attached the input file and the code that returns the error.
- Code: Select all
public static void save_to_pdf() {
ByteArrayOutputStream bts_out = new ByteArrayOutputStream();
Workbook workbook = new Workbook();
workbook.loadFromFile(".\\sources\\excel_to_pdf5.xlsx");
workbook.getConverterSetting().setSheetFitToPage(true);
workbook.saveToFile("res.pdf", FileFormat.PDF);
}