Class InlineImageParsingUtils


public final class InlineImageParsingUtils extends Object
Utility methods to help with processing of inline images
  • Method Details

    • parse

      public static PdfStream parse (PdfCanvasParser ps, PdfDictionary colorSpaceDic) throws 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
      ps - the content parser to use for reading the image.
      colorSpaceDic - a color space dictionary
      the parsed image
      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