org.apache.fop.pdf
Class PDFObject

Direct Known Subclasses:
PDFAction, PDFAnnotList, PDFArray, PDFEncoding, PDFFileSpec, PDFFont, PDFFontDescriptor, PDFFunction, PDFGoTo, PDFInfo, PDFLink, PDFPage, PDFPages, PDFPathPaint, PDFResources, PDFRoot, PDFShading, PDFStream, PDFXObject

public abstract class PDFObject

generic PDF object. A PDF Document is essentially a collection of these objects. A PDF Object has a number and a generation (although the generation will always be 0 in new documents).


Constructor Summary
PDFObject(int number)
          create an empty object
PDFObject()
           

Method Summary
 intgetNumber()
           
 StringreferencePDF()
          the PDF representation of a reference to this object
 (package private) abstract byte[]toPDF()
          represent object as PDF

Constructor Detail

PDFObject

public PDFObject(int number)
create an empty object
Parameters:
number - the object's number

PDFObject

public PDFObject()
Method Detail

getNumber

public int getNumber()
Returns: the PDF Object number

referencePDF

public String referencePDF()
the PDF representation of a reference to this object
Returns: the reference string

toPDF

abstract byte[] toPDF()
represent object as PDF
Returns: PDF string