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

IllegalArgumentException: Width (26) and height (0) must be non-zero

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.31, 3.0.2 PDFBox
    • 2.0.32, 3.0.3 PDFBox, 4.0.0
    • Rendering
    • None

    Description

      reported by Patrycja Zaremba in the users mailing list
      https://lists.apache.org/thread/xnwcyhq2c16d9xfgqwgjs70k9qb1w8tp

      When the page which I try to convert have any element which is png with
      only 1px height (28x1, 54x1 etc.) it is scaled down to 0 and I got this

      IllegalArgumentException: Width (26) and height (0) must be non-zero
      org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1281)
      org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:74)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: