static class PdfReader.PageRefs extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
keepPages |
private int |
lastPageRead
Page number of the last page that was read (partial reading only)
|
private ArrayList<PdfDictionary> |
pageInh
stack to which pages dictionaries are pushed to keep track of the current page attributes
|
private PdfReader |
reader |
private ArrayList<PRIndirectReference> |
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.
|
Modifier | Constructor and Description |
---|---|
(package private) |
PageRefs(PdfReader.PageRefs other,
PdfReader reader) |
private |
PageRefs(PdfReader reader) |
Modifier and Type | Method and Description |
---|---|
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<Integer> pagesToKeep) |
(package private) int |
size() |
private ArrayList<PRIndirectReference> refsn
private int sizep
private IntHashtable refsp
private int lastPageRead
private ArrayList<PdfDictionary> pageInh
private boolean keepPages
private PageRefs(PdfReader reader) throws IOException
IOException
PageRefs(PdfReader.PageRefs other, PdfReader reader)
int size()
void readPages() throws IOException
IOException
void reReadPages() throws IOException
IOException
public PdfDictionary getPageN(int pageNum)
pageNum
- the page number. 1 is the firstpublic PdfDictionary getPageNRelease(int pageNum)
pageNum
- public PRIndirectReference getPageOrigRefRelease(int pageNum)
pageNum
- public PRIndirectReference getPageOrigRef(int pageNum)
pageNum
- the page number. 1 is the firstvoid 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<Integer> pagesToKeep)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses