org.apache.fop.pdf
Class PDFImageXObject
- PDFWritable
public class PDFImageXObject
PDF XObject
A derivative of the PDF Object, is a PDF Stream that has not only a
dictionary but a stream of image data.
The dictionary just provides information like the stream length.
This outputs the image dictionary and the image data.
This is used as a reference for inserting the same image in the
document in another place.
PDFImageXObject(int xnumber, PDFImage img) - create an XObject with the given number and name and load the
image in the object
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PDFImageXObject
public PDFImageXObject(int xnumber,
PDFImage img)
create an XObject with the given number and name and load the
image in the object
xnumber
- the pdf object X numberimg
- the pdf image that contains the image data
output
protected int output(OutputStream stream)
throws IOException
Output the image as PDF.
This sets up the image dictionary and adds the image data stream.
- output in interface AbstractPDFStream
stream
- the output stream to write the data
- the length of the data written
setupFilterList
protected void setupFilterList()
This sets up the default filters for XObjects. It uses the PDFImage
instance to determine what default filters to apply.
- setupFilterList in interface AbstractPDFStream
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.