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

PdfJavaScriptStripper caused Java heap out of memory

$
0
0
Hello all,

We are using the following statement to remove javascript from PDF.

PdfJavaScriptStripper jsStripper = new PdfJavaScriptStripper();
jsStripper.strip(fileName, pathToSave);

We are getting Out of memory error. The JVM has 4G, and the file is just 10MB and  3.6K. 

The version is AsposePdfKit 9.7.0.

Files attached.

We are wondering how we could handle failure gracefully. 

Thanks.

// Jack

Viewing all articles
Browse latest Browse all 3131

Trending Articles