Package com.lowagie.text.pdf
Class PdfReader.PageRefs
- java.lang.Object
-
- com.lowagie.text.pdf.PdfReader.PageRefs
-
- Enclosing class:
- PdfReader
static class PdfReader.PageRefs extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleankeepPagesprivate intlastPageReadprivate java.util.ArrayListpageInhprivate PdfReaderreaderprivate java.util.ArrayListrefsnprivate IntHashtablerefspprivate intsizep
-
Constructor Summary
Constructors Modifier Constructor Description privatePageRefs(PdfReader reader)(package private)PageRefs(PdfReader.PageRefs other, PdfReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)(package private) voidinsertPage(int pageNum, PRIndirectReference ref)private voiditeratePages(PRIndirectReference rpage)(package private) voidkeepPages()private voidpopPageAttributes()private voidpushPageAttributes(PdfDictionary nodePages)(package private) voidreadPages()voidreleasePage(int pageNum)(package private) voidreReadPages()voidresetReleasePage()private voidselectPages(java.util.List pagesToKeep)(package private) intsize()
-
-
-
Field Detail
-
reader
private PdfReader reader
-
refsp
private IntHashtable refsp
-
refsn
private java.util.ArrayList refsn
-
pageInh
private java.util.ArrayList pageInh
-
lastPageRead
private int lastPageRead
-
sizep
private int sizep
-
keepPages
private boolean keepPages
-
-
Constructor Detail
-
PageRefs
private PageRefs(PdfReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
PageRefs
PageRefs(PdfReader.PageRefs other, PdfReader reader)
-
-
Method Detail
-
size
int size()
-
readPages
void readPages() throws java.io.IOException- Throws:
java.io.IOException
-
reReadPages
void reReadPages() throws java.io.IOException- Throws:
java.io.IOException
-
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
-
getPageOrigRefRelease
public PRIndirectReference getPageOrigRefRelease(int pageNum)
- Parameters:
pageNum-- Returns:
- an indirect reference
-
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
-
keepPages
void keepPages()
-
releasePage
public void releasePage(int pageNum)
- Parameters:
pageNum-
-
resetReleasePage
public void resetReleasePage()
-
insertPage
void insertPage(int pageNum, PRIndirectReference ref)
-
pushPageAttributes
private void pushPageAttributes(PdfDictionary nodePages)
-
popPageAttributes
private void popPageAttributes()
-
iteratePages
private void iteratePages(PRIndirectReference rpage) throws java.io.IOException
- Throws:
java.io.IOException
-
getSinglePage
protected PRIndirectReference getSinglePage(int n)
-
selectPages
private void selectPages(java.util.List pagesToKeep)
-
-