com.lowagie.text.pdf

Class PdfPages

public class PdfPages extends Object

PdfPages is 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
intleafSize
ArrayListpages
ArrayListparents
PdfIndirectReferencetopParent
PdfWriterwriter
Constructor Summary
PdfPages(PdfWriter writer)
Constructs a PdfPages-object.
Method Summary
voidaddPage(PdfDictionary page)
voidaddPage(PdfIndirectReference page)
PdfIndirectReferenceaddPageRef(PdfIndirectReference pageRef)
PdfIndirectReferencegetTopParent()
intreorderPages(int[] order)
voidsetLinearMode(PdfIndirectReference topParent)
PdfIndirectReferencewritePageTree()

Field Detail

leafSize

private int leafSize

pages

private ArrayList pages

parents

private ArrayList parents

topParent

private PdfIndirectReference topParent

writer

private PdfWriter writer

Constructor Detail

PdfPages

PdfPages(PdfWriter writer)
Constructs a PdfPages-object.

Method Detail

addPage

void addPage(PdfDictionary page)

addPage

void addPage(PdfIndirectReference page)

addPageRef

PdfIndirectReference addPageRef(PdfIndirectReference pageRef)

getTopParent

PdfIndirectReference getTopParent()

reorderPages

int reorderPages(int[] order)

setLinearMode

void setLinearMode(PdfIndirectReference topParent)

writePageTree

PdfIndirectReference writePageTree()