java.lang.OutOfMemoryError: Java heap space error encountered while converting excel worksheet with pictures to PDF


Attempting to convert an excel worksheet with multiple images into PDF using a ‘buildOutputResponse(function, conversionRequest, docstatus, docstatusmsg);’ and ' ’ (in the apsose library) call. The excel I’m trying to render is attached. Increasing the max heap size of running Java doesn’t seem to help. (it was incread to 5GB)

Excel worksheet to convert: (807.3 KB)

Aspose version used: 19.6


Thanks for the template file and details.

Please try our latest version/fix: Aspose.Cells for Java v20.3.3 (attached)

I have tested your scenario/ case using Aspose.Cells for Java v20.3.3, it works fine and the output file is fine tuned. Also, I do not get any exception…

Let us know your feedback. (7.0 MB)