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
PdfImageis aPdfStreamcontaining an image-Dictionaryand -stream.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfNamenameThis is thePdfNameof the image.private static intTRANSFERSIZE-
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) PdfNamename()Returns thePdfNameof the image.private static voidtransferBytes(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 thePdfNameof the image.
-
-
Constructor Detail
-
PdfImage
PdfImage(Image image, java.lang.String name, PdfIndirectReference maskRef) throws BadPdfFormatException
Constructs aPdfImage-object.- Parameters:
image- theImage-objectname- thePdfNamefor this image- Throws:
BadPdfFormatException- on error
-
-
Method Detail
-
name
PdfName name()
Returns thePdfNameof 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
-
-