com.lowagie.text.pdf

Class PdfReader.PageRefs

static class PdfReader.PageRefs extends Object

Field Summary
intlastPageRead
ArrayListpageInh
PdfReaderreader
ArrayListrefsn
IntHashtablerefsp
intsizep
Constructor Summary
PageRefs(PdfReader reader)
PageRefs(PdfReader.PageRefs other, PdfReader reader)
Method Summary
PdfDictionarygetPageN(int pageNum)
Gets the dictionary that represents a page.
PdfDictionarygetPageNRelease(int pageNum)
PRIndirectReferencegetPageOrigRef(int pageNum)
Gets the page reference to this page.
PRIndirectReferencegetPageOrigRefRelease(int pageNum)
protected PRIndirectReferencegetSinglePage(int n)
voidinsertPage(int pageNum, PRIndirectReference ref)
voiditeratePages(PRIndirectReference rpage)
voidpopPageAttributes()
voidpushPageAttributes(PdfDictionary nodePages)
voidreadPages()
voidreleasePage(int pageNum)
voidreReadPages()
voidresetReleasePage()
voidselectPages(List pagesToKeep)
intsize()

Field Detail

lastPageRead

private int lastPageRead

pageInh

private ArrayList pageInh

reader

private PdfReader reader

refsn

private ArrayList refsn

refsp

private IntHashtable refsp

sizep

private int sizep

Constructor Detail

PageRefs

private PageRefs(PdfReader reader)

PageRefs

PageRefs(PdfReader.PageRefs other, PdfReader reader)

Method Detail

getPageN

public PdfDictionary getPageN(int pageNum)
Gets the dictionary that represents a page.

Parameters: pageNum the page number. 1 is the first

Returns: the page dictionary

getPageNRelease

public PdfDictionary getPageNRelease(int pageNum)

Parameters: pageNum

Returns: a dictionary object

getPageOrigRef

public PRIndirectReference getPageOrigRef(int pageNum)
Gets the page reference to this page.

Parameters: pageNum the page number. 1 is the first

Returns: the page reference

getPageOrigRefRelease

public PRIndirectReference getPageOrigRefRelease(int pageNum)

Parameters: pageNum

Returns: an indirect reference

getSinglePage

protected PRIndirectReference getSinglePage(int n)

insertPage

void insertPage(int pageNum, PRIndirectReference ref)

iteratePages

private void iteratePages(PRIndirectReference rpage)

popPageAttributes

private void popPageAttributes()

pushPageAttributes

private void pushPageAttributes(PdfDictionary nodePages)

readPages

void readPages()

releasePage

public void releasePage(int pageNum)

Parameters: pageNum

reReadPages

void reReadPages()

resetReleasePage

public void resetReleasePage()

selectPages

private void selectPages(List pagesToKeep)

size

int size()