Hi,
I use Aspose.PDF for Java to convert a pdf file to xlsx (Excel) file.
Since Version Aspose.PDF 23.8 something is wrong with font in the created xlsx file.
With Aspose.PDF 23.7 and before it works fine.
When I open the file with Excel (Office 2016) I get the following message:
“Reparierte Datensätze: Schriftart von /xl/styles.xml-Part (Formatvorlagen)”
In English: Repaired Records: Format from /xl/styles.xml part (Styles)
When I open the file with Aspose.Cells I get an error:
com.aspose.cells.CellsException: Font size is out of range.
Code I use to create the xlsx file:
String file = “src/test/resources/input.pdf”;
try ( Document document = new Document(file); )
{
ExcelSaveOptions saveOptions = new ExcelSaveOptions();
saveOptions.setFormat(ExcelFormat.XLSX);
document.save(“src/test/resources/result.xlsx”, SaveFormat.Excel);
}
I attached the input.pdf file.
input.pdf (182.7 KB)
Thanks in advance.