org.apache.fop.pdf
Class PDFPages
- PDFWritable
class representing a /Pages object.
A /Pages object is an ordered collection of pages (/Page objects)
(Actually, /Pages can contain further /Pages as well but this
implementation doesn't allow this)
protected int | count - the number of /Page objects
|
protected List | kids - the /Page objects
|
PDFPages(int objnum) - create a /Pages object.
|
encode , encodeString , encodeText , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , hasObjectNumber , makeReference , output , referencePDF , setDocument , setObjectNumber , toInlinePDFString , toPDF , toPDFString |
count
protected int count
the number of /Page objects
kids
protected List kids
the /Page objects
PDFPages
public PDFPages(int objnum)
create a /Pages object. NOTE: The PDFPages
object must be created before the PDF document is
generated, but it is not written to the stream immediately.
It must also be allocated an object ID (so that the kids
can refer to the parent) so that the XRef table needs to
be updated before this object is written.
objnum
- the object's number
addPage
public void addPage(PDFPage page)
add a /Page object.
page
- the PDFPage to add.
getCount
public int getCount()
get the count of /Page objects
incrementCount
public void incrementCount()
increment the count of /Page objects
notifyKidRegistered
public void notifyKidRegistered(PDFPage page)
Use this method to notify the PDFPages object that a child page
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.