org.apache.fop.pdf

Class PDFFormXObject

Implemented Interfaces:
PDFWritable

public class PDFFormXObject
extends PDFXObject

PDF Form XObject A derivative of the PDFXObject, is a PDF Stream that has not only a dictionary but a stream of image data.

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFFormXObject(int xnumber, PDFStream cont, String ref)
create a FormXObject with the given number and name and load the image in the object

Method Summary

protected int
output(OutputStream stream)
Output the form stream as PDF.
protected void
outputRawStreamData(OutputStream out)

Methods inherited from class org.apache.fop.pdf.PDFXObject

buildStreamDict, getSizeHint, getXNumber, output, outputRawStreamData, prepareImplicitFilters, setupFilterList

Methods inherited from class org.apache.fop.pdf.AbstractPDFStream

buildStreamDict, encodeAndWriteStream, encodeStream, getFilterList, getSizeHint, output, outputRawStreamData, outputStreamData, prepareImplicitFilters, setupFilterList

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF, toPDFString

Constructor Details

PDFFormXObject

public PDFFormXObject(int xnumber,
                      PDFStream cont,
                      String ref)
create a FormXObject with the given number and name and load the image in the object
Parameters:
xnumber - the pdf object X number
cont - the pdf stream contents
ref - the resource PDF reference

Method Details

output

protected int output(OutputStream stream)
            throws IOException
Output the form stream as PDF. This sets up the form XObject dictionary and adds the content data stream.
Overrides:
output in interface PDFXObject
Parameters:
stream - the output stream to write the data
Returns:
the length of the data written

outputRawStreamData

protected void outputRawStreamData(OutputStream out)
            throws IOException
Overrides:
outputRawStreamData in interface PDFXObject

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.