Package com.itextpdf.text.pdf
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:
java.io.Serializable
public class PdfImage extends PdfStream
PdfImageis aPdfStreamcontaining an image-Dictionaryand -stream.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Imageimageprotected PdfNamenameThis is thePdfNameof the image.-
Fields inherited from class com.itextpdf.text.pdf.PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, streamBytes, writer
-
-
Constructor Summary
Constructors Constructor Description PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef)Constructs aPdfImage-object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagegetImage()protected voidimportAll(PdfImage dup)PdfNamename()Returns thePdfNameof the image.-
Methods inherited from class com.itextpdf.text.pdf.PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
-
Methods inherited from class com.itextpdf.text.pdf.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, size
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Constructor Detail
-
PdfImage
public PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef) throws BadPdfFormatException
Constructs aPdfImage-object.- Parameters:
image- theImage-objectname- thePdfNamefor this image- Throws:
BadPdfFormatException- on error
-
-