Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Aspose PDF for java - method that coverts to ISO format is memory intensive

$
0
0
Hi - 

We are using the below line for making PDF files ISO compliant. We have a batch that runs and picks up each PDF file from a predefined location, formats is as per our formatting requirements and then converts it to an ISO file using:

pdfDocument.convert(baseLocation+"/log.xml", PdfFormat.PDF_A_2A, ConvertErrorAction.None);

This particular line/method at times eats up all the server's JVM memory and after some time throws out of Memory exception. It works "ok" for small files but for some medium to large ones it simply blows up. This is a desired feature for our business. I have tried it on Windows and Linux and have explicitly added 1 GB and 2 GB of memory to this specific process. It appears that pdfDocument object us not cleared or disposed timely. I tried one of your recommendation to force dispose it but without any luck. I am attaching a zip of all the files that I have used for testing. I recommend you iterate over all the files in this directory and test the process


Viewing all articles
Browse latest Browse all 3131

Trending Articles