We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Why is PDF to Excel Example Code giving a different Result than you online live Exmple

Hello,

I have been trying the example Code in Java from:

In this page there is also a link to an online live example. When comparing the online live example output with my running Java example the results look different.

This file is produced by my Java example code:
Screenshot from 2021-07-03 14-11-47.png (562.6 KB)

The following output is produced by the live example for the same file:
Screenshot from 2021-07-03 14-11-41.png (574.8 KB)

Is there a way to reproduce the output from the online live example in Java. Thanks for letting me know.

I am using Aspose PDF for the conversion.

@scientillion

Can you please share the source PDF file so that we may try to reproduce the same on our end.

Sure, here is the invoice I have been using for testing:

invoice.pdf (22.5 KB)

@scientillion

I have been able to reproduce the issue on our end. A ticket with ID PDFJAVA-40668 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@scientillion

For getting the same version to the online converter, the latest version of the PDF library should be used (without any additional options).

Document doc = new Document("invoice.pdf");
ExcelSaveOptions options = new ExcelSaveOptions();
doc.save("result.xlsx", options);