public class PDFPages extends PDFObject
Modifier and Type | Field and Description |
---|---|
protected int |
count
the number of /Page objects
|
protected java.util.List |
kids
the /Page objects
|
Constructor and Description |
---|
PDFPages(int objnum)
create a /Pages object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPage(PDFPage page)
add a /Page object.
|
int |
getCount()
get the count of /Page objects
|
void |
incrementCount()
increment the count of /Page objects
|
void |
notifyKidRegistered(PDFPage page)
Use this method to notify the PDFPages object that a child page
|
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF
protected java.util.List kids
protected int count
public PDFPages(int objnum)
objnum
- the object's numberpublic void addPage(PDFPage page)
page
- the PDFPage to add.public void notifyKidRegistered(PDFPage page)
page
- the child pagepublic int getCount()
public void incrementCount()
public java.lang.String toPDFString()
toPDFString
in class PDFObject
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.