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
public class PdfImage
- extends PdfStream
PdfImage
is a PdfStream
containing an image-Dictionary
and -stream.
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 |
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
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 |
name
protected PdfName name
- This is the
PdfName
of the image.
image
protected Image image
PdfImage
public PdfImage(Image image,
String name,
PdfIndirectReference maskRef)
throws BadPdfFormatException
- Constructs a
PdfImage
-object.
- Parameters:
image
- the Image
-objectname
- the PdfName
for this image
- Throws:
BadPdfFormatException
- on error
name
public PdfName name()
- Returns the
PdfName
of the image.
- Returns:
- the name
getImage
public Image getImage()
importAll
protected void importAll(PdfImage dup)
Copyright © 2014. All Rights Reserved.