Repository: pdfbox-docs
Updated Branches:
  refs/heads/asf-site 11aef9083 -> c9719daac


Site checkin for project Apache PDFBox Website


Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/c9719daa
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/c9719daa
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/c9719daa

Branch: refs/heads/asf-site
Commit: c9719daac8c84831ad381ed140ae03bcfa1d0a64
Parents: 11aef90
Author: Maruan Sahyoun <[email protected]>
Authored: Mon Mar 6 18:57:12 2017 +0100
Committer: Maruan Sahyoun <[email protected]>
Committed: Mon Mar 6 18:57:12 2017 +0100

----------------------------------------------------------------------
 content/2.0/faq.html | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/c9719daa/content/2.0/faq.html
----------------------------------------------------------------------
diff --git a/content/2.0/faq.html b/content/2.0/faq.html
index 279f874..3921c46 100644
--- a/content/2.0/faq.html
+++ b/content/2.0/faq.html
@@ -327,6 +327,7 @@ the word “Hello” is drawn.</li>
 
 <ul>
   <li>increase the <code class="highlighter-rouge">-Xmx</code> value when 
starting java</li>
+  <li>use a scratch file by loading files with this code <code 
class="highlighter-rouge">PDDocument.load(file, 
MemoryUsageSetting.setupTempFileOnly())</code></li>
   <li>be careful not to hold your images after rendering them, e.g. avoid 
putting all images of a PDF into a <code 
class="highlighter-rouge">List</code></li>
   <li>don’t forgot to close your <code 
class="highlighter-rouge">PDDocument</code> objects</li>
   <li>decrease the scale when calling <code 
class="highlighter-rouge">PDFRenderer.renderImage()</code>, or the dpi value 
when calling <code 
class="highlighter-rouge">PDFRenderer.renderImageWithDPI()</code></li>

Reply via email to