Convert PDF to XLSX in Java | Aspose.PDF for Java

Hello,


Does anyone have an example of using the Aspose to convert from PDF to xlsx?

Any help is Most appreciated.

Thank You in advance.

Hi,


Thanks for contacting support.

Please follow the instructions specified over Convert PDF to Excel Workbook

@alabamamothman

Aspose.PDF for Java offers conversion of PDF to XLSX file format. In order to convert the document, please use following code snippet:

Convert PDF to XLSX using Aspose.PDF for Java

Document doc = new Document(dataDir + "input.pdf");
ExcelSaveOptions ex = new ExcelSaveOptions();
ex.setFormat(ExcelSaveOptions.ExcelFormat.XLSX);
doc.save(dataDir + "Testxlsx.xlsx", ex);