[ 
https://issues.apache.org/jira/browse/PDFBOX-2243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-2243:
------------------------------------

    Description: 
I get this exception with the attached file:
{code}
java.lang.IllegalArgumentException: negative dash phase
        at java.awt.BasicStroke.<init>(Unknown Source)
        at org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:691)
        at 
org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:707)
        at 
org.apache.pdfbox.util.operator.graphics.StrokePath.process(StrokePath.java:36)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:564)
{code}

The reason is this:
{code}
[2.88 2.88 2.88 2.88 2.88 2.88 2.88 2.88 ]-2407.142 d
{code}
It doesn't make sense to have a negative dash phase start, so I will adjust 
negative numbers to 0 and put out a warning.

  was:
I get this exception with the attached file:
{code}
java.lang.IllegalArgumentException: negative dash phase
        at java.awt.BasicStroke.<init>(Unknown Source)
        at org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:691)

        at org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:707
)
        at org.apache.pdfbox.util.operator.graphics.StrokePath.process(StrokePat
h.java:36)
        at 
org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:564)
{code}

The reason is this:
{code}
[2.88 2.88 2.88 2.88 2.88 2.88 2.88 2.88 ]-2407.142 d
{code}
It doesn't make sense to have a negative dash phase start, so I will adjust 
negative numbers to 0 and put out a warning.


> java.lang.IllegalArgumentException: negative dash phase
> -------------------------------------------------------
>
>                 Key: PDFBOX-2243
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2243
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.8.6, 1.8.7, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.7, 2.0.0
>
>
> I get this exception with the attached file:
> {code}
> java.lang.IllegalArgumentException: negative dash phase
>         at java.awt.BasicStroke.<init>(Unknown Source)
>         at 
> org.apache.pdfbox.rendering.PageDrawer.getStroke(PageDrawer.java:691)
>         at 
> org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:707)
>         at 
> org.apache.pdfbox.util.operator.graphics.StrokePath.process(StrokePath.java:36)
>         at 
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:564)
> {code}
> The reason is this:
> {code}
> [2.88 2.88 2.88 2.88 2.88 2.88 2.88 2.88 ]-2407.142 d
> {code}
> It doesn't make sense to have a negative dash phase start, so I will adjust 
> negative numbers to 0 and put out a warning.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to