Package com.aowagie.text.pdf
Class PdfImage
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.text.pdf.PdfStream
com.aowagie.text.pdf.PdfImage
PdfImage
is a PdfStream
containing an image-Dictionary
and -stream.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfName
This is thePdfName
of the image.private static final int
Fields inherited from class com.aowagie.text.pdf.PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, STARTSTREAM, streamBytes
Fields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
Constructor Summary
ConstructorsConstructorDescriptionPdfImage
(Image image, String name, PdfIndirectReference maskRef) Constructs aPdfImage
-object. -
Method Summary
Modifier and TypeMethodDescription(package private) PdfName
name()
Returns thePdfName
of the image.private static void
transferBytes
(InputStream in, OutputStream out, int len) Methods inherited from class com.aowagie.text.pdf.PdfStream
flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Field Details
-
TRANSFERSIZE
private static final int TRANSFERSIZE- See Also:
-
name
This is thePdfName
of the image.
-
-
Constructor Details
-
PdfImage
PdfImage(Image image, String name, PdfIndirectReference maskRef) throws BadPdfFormatException Constructs aPdfImage
-object.- Parameters:
image
- theImage
-objectname
- thePdfName
for this image- Throws:
BadPdfFormatException
- on error
-
-
Method Details
-
name
PdfName name()Returns thePdfName
of the image.- Returns:
- the name
-
transferBytes
- Throws:
IOException
-