static class PdfReader.PageRefs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
keepPages |
private int |
lastPageRead |
private java.util.ArrayList |
pageInh |
private PdfReader |
reader |
private java.util.ArrayList |
refsn |
private IntHashtable |
refsp |
private int |
sizep |
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() |
private void |
pushPageAttributes(PdfDictionary nodePages) |
(package private) void |
readPages() |
void |
releasePage(int pageNum) |
(package private) void |
reReadPages() |
void |
resetReleasePage() |
private void |
selectPages(java.util.List pagesToKeep) |
(package private) int |
size() |
private PdfReader reader
private IntHashtable refsp
private java.util.ArrayList refsn
private java.util.ArrayList pageInh
private int lastPageRead
private int sizep
private boolean keepPages
private PageRefs(PdfReader reader) throws java.io.IOException
java.io.IOException
PageRefs(PdfReader.PageRefs other, PdfReader reader)
int size()
void readPages() throws java.io.IOException
java.io.IOException
void reReadPages() throws java.io.IOException
java.io.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)
private void popPageAttributes()
private void iteratePages(PRIndirectReference rpage) throws java.io.IOException
java.io.IOException
protected PRIndirectReference getSinglePage(int n)
private void selectPages(java.util.List pagesToKeep)