public class PdfImage extends PdfStream
PdfImage
is a PdfStream
containing an image-Dictionary
and -stream.
Modifier and Type | Field and Description |
---|---|
protected Image |
image |
protected PdfName |
name
This is the PdfName of the image.
|
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, streamBytes, writer
Constructor and Description |
---|
PdfImage(Image image, String name, PdfIndirectReference maskRef)
Constructs a PdfImage -object.
|
Modifier and Type | Method and Description |
---|---|
Image |
getImage() |
protected void |
importAll(PdfImage dup) |
PdfName |
name()
Returns the PdfName of the image.
|
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
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
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
protected PdfName name
PdfName
of the image.
protected Image image
public PdfImage(Image image, String name, PdfIndirectReference maskRef) throws BadPdfFormatException
PdfImage
-object.
image
- the Image
-object
name
- the PdfName
for this image
BadPdfFormatException
- on error
Copyright © 1998–2019. All rights reserved.