lanshiqin opened a new pull request #118:
URL: https://github.com/apache/pdfbox/pull/118


   The example is very important to prevent OOM when parsing complex PDF files.
   
   fix PDFBOX-4690 issues
   
   // 1. Load document with temp file only
   PDDocument.load(in, MemoryUsageSetting.setupTempFileOnly())
   
   // 2. Indicates that the renderer is allowed to sub sample the image before 
drawing.
   renderer.setSubsamplingAllowed(true);


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to