|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.PdfReader.PageRefs
static class PdfReader.PageRefs
Field Summary | |
---|---|
private boolean |
keepPages
|
private int |
lastPageRead
Page number of the last page that was read (partial reading only) |
private ArrayList |
pageInh
stack to which pages dictionaries are pushed to keep track of the current page attributes |
private PdfReader |
reader
|
private ArrayList |
refsn
ArrayList with the indirect references to every page. |
private IntHashtable |
refsp
intHashtable that does the same thing as refsn in case of partial reading: major difference: not all the pages are read. |
private int |
sizep
The number of pages, updated only in case of partial reading. |
Constructor Summary | |
---|---|
(package private) |
PdfReader.PageRefs(PdfReader.PageRefs other,
PdfReader reader)
|
private |
PdfReader.PageRefs(PdfReader reader)
|
Method Summary | |
---|---|
PdfDictionary |
getPageN(int pageNum)
Gets the dictionary that represents a page. |
PdfDictionary |
getPageNRelease(int pageNum)
|
PRIndirectReference |
getPageOrigRef(int pageNum)
Gets the page reference to this page. |
PRIndirectReference |
getPageOrigRefRelease(int pageNum)
|
protected PRIndirectReference |
getSinglePage(int n)
|
(package private) void |
insertPage(int pageNum,
PRIndirectReference ref)
|
private void |
iteratePages(PRIndirectReference rpage)
|
(package private) void |
keepPages()
|
private void |
popPageAttributes()
Removes the last PdfDictionary that was pushed to the pageInh stack. |
private void |
pushPageAttributes(PdfDictionary nodePages)
Adds a PdfDictionary to the pageInh stack to keep track of the page attributes. |
(package private) void |
readPages()
|
void |
releasePage(int pageNum)
|
(package private) void |
reReadPages()
|
void |
resetReleasePage()
|
private void |
selectPages(List pagesToKeep)
|
(package private) int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PdfReader reader
private ArrayList refsn
private int sizep
private IntHashtable refsp
private int lastPageRead
private ArrayList pageInh
private boolean keepPages
Constructor Detail |
---|
private PdfReader.PageRefs(PdfReader reader) throws IOException
IOException
PdfReader.PageRefs(PdfReader.PageRefs other, PdfReader reader)
Method Detail |
---|
int size()
void readPages() throws IOException
IOException
void reReadPages() throws IOException
IOException
public PdfDictionary getPageN(int pageNum)
pageNum
- the page number. 1 is the first
public PdfDictionary getPageNRelease(int pageNum)
pageNum
-
public PRIndirectReference getPageOrigRefRelease(int pageNum)
pageNum
-
public PRIndirectReference getPageOrigRef(int pageNum)
pageNum
- the page number. 1 is the first
void keepPages()
public void releasePage(int pageNum)
pageNum
- public void resetReleasePage()
void insertPage(int pageNum, PRIndirectReference ref)
private void pushPageAttributes(PdfDictionary nodePages)
nodePages
- a Pages dictionaryprivate void popPageAttributes()
private void iteratePages(PRIndirectReference rpage) throws IOException
IOException
protected PRIndirectReference getSinglePage(int n)
private void selectPages(List pagesToKeep)
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |