com.itextpdf.text.pdf.parser
public final class InlineImageUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InlineImageUtils.InlineImageParseException
Simple class in case users need to differentiate an exception from processing
inline images vs other exceptions
|
Modifier and Type | Method and Description |
---|---|
static PdfImageObject |
parseInlineImage(PdfContentParser ps,
PdfDictionary colorSpaceDic)
Parses an inline image from the provided content parser.
|
public static PdfImageObject parseInlineImage(PdfContentParser ps, PdfDictionary colorSpaceDic) throws IOException
ps
- the content parser to use for reading the image.resources
- IOException
- if anything goes wring with the parsingInlineImageUtils.InlineImageParseException
- if parsing of the inline image failed due to issues specific to inline image processing