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 PdfNameThis is thePdfNameof the image.private static final intFields inherited from class com.aowagie.text.pdf.PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, STARTSTREAM, streamBytesFields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGEFields 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) PdfNamename()Returns thePdfNameof the image.private static voidtransferBytes(InputStream in, OutputStream out, int len) Methods inherited from class com.aowagie.text.pdf.PdfStream
flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLengthMethods 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, sizeMethods 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 thePdfNameof the image.
-
-
Constructor Details
-
PdfImage
PdfImage(Image image, String name, PdfIndirectReference maskRef) throws BadPdfFormatException Constructs aPdfImage-object.- Parameters:
image- theImage-objectname- thePdfNamefor this image- Throws:
BadPdfFormatException- on error
-
-
Method Details
-
name
PdfName name()Returns thePdfNameof the image.- Returns:
- the name
-
transferBytes
- Throws:
IOException
-