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,
String name,
PdfIndirectReference maskRef)
Constructs a
PdfImage -object. |
Modifier and Type | Method and Description |
---|---|
private void |
generateImgResName(Image img)
Called when no resource name is provided in our constructor.
|
protected void |
importAll(PdfImage dup) |
PdfName |
name()
Returns the
PdfName of the image. |
(package private) static void |
transferBytes(InputStream in,
OutputStream out,
int len) |
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
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
static final int TRANSFERSIZE
public PdfImage(Image image, String name, PdfIndirectReference maskRef) throws BadPdfFormatException
PdfImage
-object.image
- the Image
-objectname
- the PdfName
for this imageBadPdfFormatException
- on errorstatic void transferBytes(InputStream in, OutputStream out, int len) throws IOException
IOException
private void generateImgResName(Image img)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses