Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3694

java.io.IOException: Image stream is empty for inline image (2)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5, 3.0.0 PDFBox
    • Component/s: Parsing
    • Labels:
      None

      Description

      IOException: Image stream is empty
          org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:114)
          org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.getImage(PDInlineImage.java:344)
          org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:986)
          org.apache.pdfbox.contentstream.operator.graphics.BeginInlineImage.process(BeginInlineImage.java:40)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:853)
      

      Unlike in PDFBOX-2237 the inline image is really empty:

      BI
      /CS/G
      /W 2
      /H 1
      /BPC 8
      ID EI
      EI
      

      Solution: warn and skip.

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: