Attempting to convert an excel worksheet with two images into PDF using a workbook.save(stream, SaveFormat.PDF) call. The excel I’m trying to render is attached. Increasing the max heap size of running Java doesn’t seem to help.
Please try our latest version/fix: Aspose.Cells for Java v19.12.4 (attachee)
I simply tested your scenario using the following sample code with v19.12.4, it works fine and the output file is generated in quick time:
e.g Sample code:
......
FileInputStream io = new FileInputStream(new File(stringFilePath));
Workbook workbook = new Workbook(io);
try (OutputStream out = new FileOutputStream(new File(outputPDFPath))) {
workbook.save(out, SaveFormat.PDF);
} catch(Exception e) {
throw new RuntimeException(e);
}