Class PdfReaderInstance


  • class PdfReaderInstance
    extends java.lang.Object
    Instance of PdfReader in each output document.
    • Field Detail

      • IDENTITYMATRIX

        private static final PdfLiteral IDENTITYMATRIX
      • myXref

        private final int[] myXref
      • importedPages

        private final java.util.HashMap importedPages
      • visited

        private final java.util.HashMap visited
      • nextRound

        private java.util.ArrayList nextRound
    • Method Detail

      • getNewObjectNumber

        int getNewObjectNumber​(int number,
                               int generation)
      • getResources

        PdfObject getResources​(int pageNumber)
      • getFormXObject

        PdfStream getFormXObject​(int pageNumber,
                                 int compressionLevel)
                          throws java.io.IOException
        Gets the content stream of a page as a PdfStream object.
        Parameters:
        pageNumber - the page of which you want the stream
        compressionLevel - the compression level you want to apply to the stream
        Returns:
        a PdfStream object
        Throws:
        java.io.IOException
        Since:
        2.1.3 (the method already existed without param compressionLevel)
      • writeAllVisited

        private void writeAllVisited()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeAllPages

        void writeAllPages()
                    throws java.io.IOException
        Throws:
        java.io.IOException