You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/11/19 20:02:10 UTC

[jira] [Created] (PDFBOX-3122) IllegalArgumentException: dash lengths all zero

Tilman Hausherr created PDFBOX-3122:
---------------------------------------

             Summary: IllegalArgumentException: dash lengths all zero
                 Key: PDFBOX-3122
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3122
             Project: PDFBox
          Issue Type: Improvement
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
             Fix For: 2.0.0


{code}
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)
{code}
The content stream has this:
{code}
  [ 0.0 0.0 ] 0 d
{code}
I'll fix this by checking the dash array and pass an empty array if an element is 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org