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).
Method Summary |
int | getNumber() |
String | referencePDF() the PDF representation of a reference to this object |
(package private) abstract byte[] | toPDF() represent object as PDF |
PDFObject
public PDFObject(int number)
- create an empty object
- Parameters:
- number - the object's number
PDFObject
public PDFObject()
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