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

IllegalArgumentException: dash lengths all zero

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Rendering
    • None

    Description

      Caused by: java.lang.IllegalArgumentException: dash lengths all zero
          org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:563)
          org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:571)
          org.apache.pdfbox.contentstream.operator.graphics.StrokePath.process(StrokePath.java:36)
      

      The content stream has this:

        [ 0.0 0.0 ] 0 d
      

      I'll fix this by checking the dash array and pass an empty array if all elements are 0.

      Attachments

        1. PDFBOX-3122-121955-p8-zero-dash.pdf
          159 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: