Class PdfImage
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.PdfStream
com.itextpdf.text.pdf.PdfImage
- All Implemented Interfaces:
Serializable
PdfImage is a PdfStream containing an image-Dictionary and -stream.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Imageprotected PdfNameThis is thePdfNameof the image.Fields inherited from class PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, streamBytes, writer -
Constructor Summary
ConstructorsConstructorDescriptionPdfImage(Image image, String name, PdfIndirectReference maskRef) Constructs aPdfImage-object. -
Method Summary
Methods inherited from class PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLengthMethods inherited from class PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, sizeMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
name
This is thePdfNameof the image. -
image
-
-
Constructor Details
-
PdfImage
public 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
-
getImage
-
importAll
-