Class InlineImageParsingUtils
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.util.InlineImageParsingUtils
Utility methods to help with processing of inline images
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Simple class in case users need to differentiate an exception from processing inline images vs other exceptions -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfStream
parse
(PdfCanvasParser ps, PdfDictionary colorSpaceDic) Parses an inline image from the provided content parser.
-
Method Details
-
parse
Parses an inline image from the provided content parser. The parser must be positioned immediately following the BI operator in the content stream. The parser will be left with current position immediately following the EI operator that terminates the inline image- Parameters:
-
ps
- the content parser to use for reading the image. -
colorSpaceDic
- a color space dictionary - Returns:
- the parsed image
- Throws:
-
IOException
- if anything goes wring with the parsing -
InlineImageParsingUtils.InlineImageParseException
- if parsing of the inline image failed due to issues specific to inline image processing
-