static class PdfReader.PageRefs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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) |
PdfReader.PageRefs(PdfReader.PageRefs other,
PdfReader reader) |
private |
PdfReader.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) |
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 PdfReader.PageRefs(PdfReader reader) throws java.io.IOException
java.io.IOException
PdfReader.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 firstpublic 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) throws java.io.IOException
java.io.IOException
private void selectPages(java.util.List pagesToKeep)