public class PdfImage extends PdfStream
PdfImage is a PdfStream containing an image-Dictionary and -stream.| Modifier and Type | Field and Description |
|---|---|
protected PdfName |
name
This is the
PdfName of the image. |
(package private) static int |
TRANSFERSIZE |
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer| Constructor and Description |
|---|
PdfImage(Image image,
java.lang.String name,
PdfIndirectReference maskRef)
Constructs a
PdfImage-object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
importAll(PdfImage dup) |
PdfName |
name()
Returns the
PdfName of the image. |
(package private) static void |
transferBytes(java.io.InputStream in,
java.io.OutputStream out,
int len) |
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLengthcontains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, sizecanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typestatic final int TRANSFERSIZE
protected PdfName name
PdfName of the image.public PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef) throws BadPdfFormatException
PdfImage-object.image - the Image-objectname - the PdfName for this imageBadPdfFormatException - on error