PDFWritablepublic class PDFImageXObject extends PDFXObject
| Constructor | Description |
|---|---|
PDFImageXObject(int xnumber,
PDFImage img) |
create an XObject with the given number and name and load the
image in the object
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
getChildren(java.util.Set<PDFObject> children) |
|
protected java.lang.String |
getDefaultFilterName() |
Returns the name of a suitable filter for this PDF object.
|
protected int |
getSizeHint() |
Returns a value that hints at the size of the encoded stream.
|
protected boolean |
multipleFiltersAllowed() |
Whether multiple filters can be applied.
|
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).
|
encodeAndWriteStream, encodeStream, get, getDictionary, getFilterList, outputStreamData, put, registerChildren, setDocument, setupFilterListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringgetNamepublic PDFImageXObject(int xnumber,
PDFImage img)
xnumber - the pdf object X numberimg - the pdf image that contains the image datapublic int output(java.io.OutputStream stream)
throws java.io.IOException
output in class AbstractPDFStreamstream - the output stream to write the datajava.io.IOException - if there is an error writing the dataprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict in class PDFXObjectlengthEntry - value for the /Length entryprotected void outputRawStreamData(java.io.OutputStream out)
throws java.io.IOException
outputRawStreamData in class AbstractPDFStreamout - OutputStream to write tojava.io.IOException - In case of an I/O problemprotected int getSizeHint()
throws java.io.IOException
getSizeHint in class PDFXObjectjava.io.IOException - in case of an I/O problemprotected void prepareImplicitFilters()
prepareImplicitFilters in class AbstractPDFStreamprotected java.lang.String getDefaultFilterName()
getDefaultFilterName in class AbstractPDFStreamPDFFilterListprotected boolean multipleFiltersAllowed()
multipleFiltersAllowed in class AbstractPDFStreampublic void getChildren(java.util.Set<PDFObject> children)
getChildren in class AbstractPDFStreamCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.