Slow process / High memory usage when using Aspose.PDF for conversion pdf to image


We want to use Aspose.pdf in our application to convert our pdf to jpeg.
We had very good results compared to other converters and we thank you for your work.
However, we found that the conversion takes a long time and consumes too much memory resources. We used Aspose.pdf version 19.1 (Java python plugin) and we even used the latest version 22.1 but still the same results.

  • Use on servers (8 GB of RAM / Centos 7 / Jdk 1.7)

here is an example of code we used

pdf = self.Document("…")
page = pdf.getPages()
reso = self.resolution(300)
image = self.jpegdevice(reso)
image.process(page.get_Item(i), “output_stram”))

Thank You


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Thank you for your quick response, I am attaching everything you asked for (pdf input, script), on the other hand, the script is in python (using the JVM), since our applications are used in python and above all I I would like to know why it takes so long on this script. (519.4 KB)

Thank you


We have logged this problem in our issue tracking system as PDFJAVA-41312. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


Thank you