Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to invoke <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfWriter.html#freeReader%28com.itextpdf.text.pdf.PdfReader%29" rel="nofollow"><code>PdfWriter#freeReader()</code></a> by end of every loop to free the involved <code>PdfReader</code>. The <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfCopy.html#freeReader%28com.itextpdf.text.pdf.PdfReader%29" rel="nofollow"><code>PdfCopy#freeReader()</code></a> has this method inherited from <code>PdfWriter</code> and does the same. See also the <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfCopy.html#freeReader%28com.itextpdf.text.pdf.PdfReader%29" rel="nofollow">javadoc</a>:</p> <blockquote> <h3>freeReader</h3> <pre><code>public void freeReader(PdfReader reader) throws IOException </code></pre> <p><strong>Description copied from class</strong>: <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfWriter.html#freeReader%28com.itextpdf.text.pdf.PdfReader%29" rel="nofollow"><code>PdfWriter</code></a><br> Use this method to writes the reader to the document and free the memory used by it. The main use is when concatenating multiple documents to keep the memory usage restricted to the current appending document.</p> <p><strong>Overrides</strong>:<br> <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfWriter.html#freeReader%28com.itextpdf.text.pdf.PdfReader%29" rel="nofollow"><code>freeReader</code></a> in class <a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfWriter.html" rel="nofollow"><code>PdfWriter</code></a></p> <p><strong>Parameters</strong>:<br> <code>reader</code> - the <code>PdfReader</code> to free </p> <p><strong>Throws</strong>:<br> <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" rel="nofollow"><code>IOException</code></a> - on error</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload