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

Free Support Forum - aspose.com

Memory issue of pdf

Dear support,

I have a program which read pdf with around 90 pages and some pages with QR code img. the pdf will be splitted into smaller size pdf(s) once QR img(s) are detected. The logic is,

  1. looping every page
  2. read all images on the page including QR code into ximage, if document id exist in the image , save the pdf doc with the previous pages scanned. otherwise add the page to pdf document and read the next page.

now the problem seems there is memory issue coming from the pdf library

com.aspose.pdf.internal.l59u.lf: Cannot parse file. —> class com.aspose.pdf.internal.l59u.lb: Not enough data in stream.

I tried some function like dispose,delete,clear but not work, please advise whether such number of pages processing in aspose is feasible or not, thanks.

developer

@jos_maint

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

  • Your input PDF.
  • Please create a standalone console 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.