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

IllegalArgumentException for images without dimensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      Caused by: java.lang.IllegalArgumentException: Width (-1) and height (-1) must be > 0
          org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:154)
          org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:341)
          org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:808)
      

      I'll throw a checked exception instead.

      Attachments

        1. PDFJS-4575-noimagedim.pdf
          0.8 kB
          Tilman Hausherr

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: