Package com.aowagie.text.pdf
Class PdfImage
- java.lang.Object
-
- com.aowagie.text.pdf.PdfObject
-
- com.aowagie.text.pdf.PdfDictionary
-
- com.aowagie.text.pdf.PdfStream
-
- com.aowagie.text.pdf.PdfImage
-
public class PdfImage extends PdfStream
PdfImage
is aPdfStream
containing an image-Dictionary
and -stream.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfName
name
This is thePdfName
of the image.private static int
TRANSFERSIZE
-
Fields inherited from class com.aowagie.text.pdf.PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, STARTSTREAM, streamBytes
-
Fields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
-
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
-
Constructor Summary
Constructors Constructor Description PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef)
Constructs aPdfImage
-object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) PdfName
name()
Returns thePdfName
of the image.private static void
transferBytes(java.io.InputStream in, java.io.OutputStream out, int len)
-
Methods inherited from class com.aowagie.text.pdf.PdfStream
flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
-
Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size
-
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
-
-
-
Field Detail
-
TRANSFERSIZE
private static final int TRANSFERSIZE
- See Also:
- Constant Field Values
-
name
private PdfName name
This is thePdfName
of the image.
-
-
Constructor Detail
-
PdfImage
PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef) throws BadPdfFormatException
Constructs aPdfImage
-object.- Parameters:
image
- theImage
-objectname
- thePdfName
for this image- Throws:
BadPdfFormatException
- on error
-
-
Method Detail
-
name
PdfName name()
Returns thePdfName
of the image.- Returns:
- the name
-
transferBytes
private static void transferBytes(java.io.InputStream in, java.io.OutputStream out, int len) throws java.io.IOException
- Throws:
java.io.IOException
-
-