Class PdfImageObject
java.lang.Object
com.itextpdf.text.pdf.parser.PdfImageObject
An object that contains an image dictionary and image bytes.
- Since:
- 5.0.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDifferent types of data that can be stored in the bytes of aPdfImageObject -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPdfImageObject(PdfDictionary dictionary, byte[] samples, PdfDictionary colorSpaceDic) Creats a PdfImage object using an explicitly provided dictionary and image bytesPdfImageObject(PRStream stream) Creates a PdfImage object.PdfImageObject(PRStream stream, PdfDictionary colorSpaceDic) Creates a PdfImage object. -
Method Summary
Modifier and TypeMethodDescriptionReturns an entry from the image dictionary.Returns the image dictionary.byte[]
-
Constructor Details
-
PdfImageObject
Creates a PdfImage object.- Parameters:
stream- a PRStream- Throws:
IOException
-
PdfImageObject
Creates a PdfImage object.- Parameters:
stream- a PRStreamcolorSpaceDic- a color space dictionary- Throws:
IOException
-
PdfImageObject
protected PdfImageObject(PdfDictionary dictionary, byte[] samples, PdfDictionary colorSpaceDic) throws IOException Creats a PdfImage object using an explicitly provided dictionary and image bytes- Parameters:
dictionary- the dictionary for the imagesamples- the samplescolorSpaceDic- a color space dictionary- Throws:
IOException- Since:
- 5.0.3
-
-
Method Details
-
getFileType
-
getImageBytesType
- Returns:
- the type of image data that is returned by getImageBytes()
-
get
-
getDictionary
-
getImageAsBytes
public byte[] getImageAsBytes()- Returns:
- the bytes of the image (the format will be as specified in
getImageBytesType() - Throws:
IOException- Since:
- 5.0.4
-
getBufferedImage
- Throws:
IOException- Since:
- 5.0.3 renamed from getAwtImage()
-