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

java.lang.IllegalArgumentException: dash lengths all zero

    XMLWordPrintableJSON

Details

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

    Description

      java.lang.IllegalArgumentException: dash lengths all zero
          org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:567)
          org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:576)
          org.apache.pdfbox.contentstream.operator.graphics.StrokePath.process(StrokePath.java:36)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:814)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:471)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:445)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
          org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:187)
          org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
      

      The dash values are not "all zero", but NaN, which is because the CTM in this file grows bigger and bigger until they are infinite.

      Attachments

        1. PDFBOX-3360-444988-p12.pdf
          86 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: