org.apache.fop.pdf
Class PDFFormXObject
- PDFWritable
public class PDFFormXObject
PDF Form XObject
A derivative of the PDFXObject, is a PDF Stream that has not only a
dictionary but a stream of image data.
Rectangle2D | getBBox() - Returns the bounding box.
|
AffineTransform | getMatrix() - Returns the Matrix value.
|
protected int | output(OutputStream stream) -
|
protected void | outputRawStreamData(OutputStream out) -
|
protected void | populateStreamDict(Object lengthEntry) -
|
void | setBBox(Rectangle2D bbox) - Sets the bounding box of the Form XObject.
|
void | setData(byte[] data) - Used to set the contents of the PDF stream.
|
void | setMatrix(AffineTransform at) - Sets the Matrix value
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PDFFormXObject
public PDFFormXObject(int xnumber,
PDFStream contents,
PDFReference resources)
create a FormXObject with the given number and name and load the
image in the object
xnumber
- the pdf object X numbercontents
- the form's contentsresources
- the resource PDF reference
getBBox
public Rectangle2D getBBox()
Returns the bounding box.
getMatrix
public AffineTransform getMatrix()
Returns the Matrix value.
setBBox
public void setBBox(Rectangle2D bbox)
Sets the bounding box of the Form XObject.
setData
public void setData(byte[] data)
throws IOException
Used to set the contents of the PDF stream.
data
- the contents as a byte array
setMatrix
public void setMatrix(AffineTransform at)
Sets the Matrix value
at
- the AffineTransform defining the transformation matrix
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.