You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by GitBox <gi...@apache.org> on 2021/06/18 21:09:57 UTC

[GitHub] [pdfbox] lanshiqin opened a new pull request #118: Pdfbox 4690

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


[GitHub] [pdfbox] lanshiqin closed pull request #118: [PDFBOX-4690] The example is very important to prevent OOM when parsing complex PDF files.

Posted by GitBox <gi...@apache.org>.
lanshiqin closed pull request #118:
URL: https://github.com/apache/pdfbox/pull/118


   


-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org