|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.AbstractPDFStream
org.apache.fop.pdf.PDFXObject
org.apache.fop.pdf.PDFImageXObject
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.
Field Summary |
---|
Fields inherited from class org.apache.fop.pdf.PDFDictionary |
---|
entries, order |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
DATE_FORMAT, log |
Constructor Summary | |
---|---|
PDFImageXObject(int xnumber,
PDFImage img)
create an XObject with the given number and name and load the image in the object |
Method Summary | |
---|---|
protected int |
getSizeHint()
Returns a value that hints at the size of the encoded stream. |
protected int |
output(java.io.OutputStream stream)
Output the image as PDF. |
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream. |
protected void |
populateStreamDict(java.lang.Object lengthEntry)
Populates the dictionary with all necessary entries for the stream. |
protected void |
prepareImplicitFilters()
Prepares implicit filters (such as the DCTFilter for JPEG images). |
protected void |
setupFilterList()
This sets up the default filters for XObjects. |
Methods inherited from class org.apache.fop.pdf.PDFXObject |
---|
getName |
Methods inherited from class org.apache.fop.pdf.AbstractPDFStream |
---|
encodeAndWriteStream, encodeStream, getFilterList, outputStreamData |
Methods inherited from class org.apache.fop.pdf.PDFDictionary |
---|
get, put, put, writeDictionary |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFImageXObject(int xnumber, PDFImage img)
xnumber
- the pdf object X numberimg
- the pdf image that contains the image dataMethod Detail |
---|
protected int output(java.io.OutputStream stream) throws java.io.IOException
output
in class AbstractPDFStream
stream
- the output stream to write the data
java.io.IOException
- if there is an error writing the dataprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict
in class PDFXObject
lengthEntry
- value for the /Length entryprotected void outputRawStreamData(java.io.OutputStream out) throws java.io.IOException
outputRawStreamData
in class AbstractPDFStream
out
- OutputStream to write to
java.io.IOException
- In case of an I/O problemprotected int getSizeHint() throws java.io.IOException
getSizeHint
in class PDFXObject
java.io.IOException
- in case of an I/O problemprotected void prepareImplicitFilters()
prepareImplicitFilters
in class AbstractPDFStream
protected void setupFilterList()
setupFilterList
in class AbstractPDFStream
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |