Package com.itextpdf.text.pdf
Class PdfPages
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfPages
-
public class PdfPages extends java.lang.ObjectPdfPagesis the PDF Pages-object.The Pages of a document are accessible through a tree of nodes known as the Pages tree. This tree defines the ordering of the pages in the document.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 6.3 (page 71-73)- See Also:
PdfPage
-
-
Field Summary
Fields Modifier and Type Field Description private intleafSizeprivate java.util.ArrayList<PdfIndirectReference>pagesprivate java.util.ArrayList<PdfIndirectReference>parentsprivate PdfIndirectReferencetopParentprivate PdfWriterwriter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddPage(PdfDictionary page)(package private) voidaddPage(PdfIndirectReference page)(package private) PdfIndirectReferenceaddPageRef(PdfIndirectReference pageRef)(package private) PdfIndirectReferencegetTopParent()(package private) intreorderPages(int[] order)(package private) voidsetLinearMode(PdfIndirectReference topParent)(package private) PdfIndirectReferencewritePageTree()
-
-
-
Field Detail
-
pages
private java.util.ArrayList<PdfIndirectReference> pages
-
parents
private java.util.ArrayList<PdfIndirectReference> parents
-
leafSize
private int leafSize
-
writer
private PdfWriter writer
-
topParent
private PdfIndirectReference topParent
-
-
Constructor Detail
-
PdfPages
PdfPages(PdfWriter writer)
Constructs aPdfPages-object.
-
-
Method Detail
-
addPage
void addPage(PdfDictionary page)
-
addPageRef
PdfIndirectReference addPageRef(PdfIndirectReference pageRef)
-
writePageTree
PdfIndirectReference writePageTree() throws java.io.IOException
- Throws:
java.io.IOException
-
getTopParent
PdfIndirectReference getTopParent()
-
setLinearMode
void setLinearMode(PdfIndirectReference topParent)
-
addPage
void addPage(PdfIndirectReference page)
-
reorderPages
int reorderPages(int[] order) throws DocumentException- Throws:
DocumentException
-
-