Package com.itextpdf.text.pdf.parser
Class InlineImageUtils
- java.lang.Object
-
- com.itextpdf.text.pdf.parser.InlineImageUtils
-
public final class InlineImageUtils extends java.lang.Object
Utility methods to help with processing of inline images- Since:
- 5.0.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InlineImageUtils.InlineImageParseException
Simple class in case users need to differentiate an exception from processing inline images vs other exceptions
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InlineImageInfo
parseInlineImage(PdfContentParser ps, PdfDictionary colorSpaceDic)
Parses an inline image from the provided content parser.
-
-
-
Method Detail
-
parseInlineImage
public static InlineImageInfo parseInlineImage(PdfContentParser ps, PdfDictionary colorSpaceDic) throws java.io.IOException
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:
java.io.IOException
- if anything goes wring with the parsingInlineImageUtils.InlineImageParseException
- if parsing of the inline image failed due to issues specific to inline image processing
-
-