public class PDFPages extends PDFObject
Modifier and Type | Field and Description |
---|---|
protected int |
count
the number of /Page objects
|
protected List |
kids
the /Page objects
|
Constructor and Description |
---|
PDFPages(PDFDocument document)
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
|
String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF
protected List kids
protected int count
public PDFPages(PDFDocument document)
public void addPage(PDFPage page)
page
- the PDFPage to add.public void notifyKidRegistered(PDFPage page)
page
- the child pagepublic int getCount()
public void incrementCount()
public String toPDFString()
toPDFString
in class PDFObject
Copyright © 2025 Apache Software Foundation. All rights reserved.