Class PDFImage
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.Stream
com.orsonpdf.PDFImage
Represents an image in a PDF document.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DictionarycreateDictionary(int streamLength) Creates a dictionary reflecting the current configuration for this image.byte[]Returns the raw image data.Methods inherited from class Stream
addFilter, getObjectBytes, removeFiltersMethods inherited from class PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
Constructor Details
-
PDFImage
-
-
Method Details
-
getRawStreamData
public byte[] getRawStreamData()Returns the raw image data. Each call will resample the image data and populate a new array. Note that the stream may encode this data before it is written to the PDF output.- Specified by:
getRawStreamDatain classStream- Returns:
- The raw stream data.
-
createDictionary
Creates a dictionary reflecting the current configuration for this image.- Overrides:
createDictionaryin classStream- Parameters:
streamLength- the stream length.- Returns:
- A dictionary.
-