com.itextpdf.text.pdf
Class PdfReaderInstance

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfReaderInstance

 class PdfReaderInstance
extends Object

Instance of PdfReader in each output document.

Author:
Paulo Soares

Field Summary
(package private)  RandomAccessFileOrArray file
           
(package private) static PdfLiteral IDENTITYMATRIX
           
(package private)  HashMap<Integer,PdfImportedPage> importedPages
           
(package private)  int[] myXref
           
(package private)  ArrayList<Integer> nextRound
           
(package private) static PdfNumber ONE
           
(package private)  PdfReader reader
           
(package private)  HashSet<Integer> visited
           
(package private)  PdfWriter writer
           
 
Constructor Summary
PdfReaderInstance(PdfReader reader, PdfWriter writer)
           
 
Method Summary
(package private)  PdfStream getFormXObject(int pageNumber, int compressionLevel)
          Gets the content stream of a page as a PdfStream object.
(package private)  PdfImportedPage getImportedPage(int pageNumber)
           
(package private)  int getNewObjectNumber(int number, int generation)
           
(package private)  PdfReader getReader()
           
(package private)  RandomAccessFileOrArray getReaderFile()
           
(package private)  PdfObject getResources(int pageNumber)
           
(package private)  void writeAllPages()
           
(package private)  void writeAllVisited()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTITYMATRIX

static final PdfLiteral IDENTITYMATRIX

ONE

static final PdfNumber ONE

myXref

int[] myXref

reader

PdfReader reader

file

RandomAccessFileOrArray file

importedPages

HashMap<Integer,PdfImportedPage> importedPages

writer

PdfWriter writer

visited

HashSet<Integer> visited

nextRound

ArrayList<Integer> nextRound
Constructor Detail

PdfReaderInstance

PdfReaderInstance(PdfReader reader,
                  PdfWriter writer)
Method Detail

getReader

PdfReader getReader()

getImportedPage

PdfImportedPage getImportedPage(int pageNumber)

getNewObjectNumber

int getNewObjectNumber(int number,
                       int generation)

getReaderFile

RandomAccessFileOrArray getReaderFile()

getResources

PdfObject getResources(int pageNumber)

getFormXObject

PdfStream getFormXObject(int pageNumber,
                         int compressionLevel)
                   throws 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:
IOException
Since:
2.1.3 (the method already existed without param compressionLevel)

writeAllVisited

void writeAllVisited()
               throws IOException
Throws:
IOException

writeAllPages

void writeAllPages()
             throws IOException
Throws:
IOException

Hosted by Hostbasket