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

IllegalArgumentException for images without dimensions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 2.0.3, 3.0.0 PDFBox
    • Component/s: Rendering
    • Labels:
      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

          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: