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
 voidaddPage(PDFPage page)
          add a /Page object.
 intgetCount()
          get the count of /Page objects
 voidincrementCount()
          increment the count of /Page objects
 byte[]toPDF()
          represent the object in PDF

Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF

Constructor Detail

PDFPages

public PDFPages(int number)
create a /Pages object.
Parameters:
number - the object's number
Method Detail

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

Association Links

to Class java.util.Vector

the /Page objects