org.apache.fop.pdf
Class PDFPages
org.apache.fop.pdf.PDFObject
|
+--org.apache.fop.pdf.PDFPages
- public class PDFPages
- extends PDFObject
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)
Constructor Summary |
PDFPages(int number) create a /Pages object. |
Method Summary |
void | addPage(PDFPage page) add a /Page object. |
int | getCount() get the count of /Page objects |
void | incrementCount() increment the count of /Page objects |
byte[] | toPDF() represent the object in PDF |
PDFPages
public PDFPages(int number)
- create a /Pages object.
- Parameters:
- number - the object's number
addPage
public void addPage(PDFPage page)
- add a /Page object.
- Parameters:
- page - the PDFPage to add.
getCount
public int getCount()
- get the count of /Page objects
- Returns: the number of pages
incrementCount
public void incrementCount()
- increment the count of /Page objects
toPDF
public byte[] toPDF()
- represent the object in PDF
- Returns: the PDF string
to Class java.util.Vector- the /Page objects