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

Tilman Hausherr resolved PDFBOX-2203.
-------------------------------------

    Resolution: Fixed

Fixed in rev 1609908 for the trunk.

> java.lang.IllegalArgumentException: alpha value out of range
> ------------------------------------------------------------
>
>                 Key: PDFBOX-2203
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2203
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: PDFBOX-2203-019672.pdf
>
>
> I get this with the attached file:
> {code}
> java.lang.IllegalArgumentException: alpha value out of range
>       at java.awt.AlphaComposite.<init>(AlphaComposite.java:624)
>       at java.awt.AlphaComposite.getInstance(AlphaComposite.java:689)
>       at 
> org.apache.pdfbox.pdmodel.graphics.blend.BlendComposite.getInstance(BlendComposite.java:45)
>       at 
> org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState.getStrokeJavaComposite(PDGraphicsState.java:577)
>       at 
> org.apache.pdfbox.rendering.PageDrawer.strokePath(PageDrawer.java:939)
>       at 
> org.apache.pdfbox.util.operator.pagedrawer.StrokePath.process(StrokePath.java:37)
> {code}
> The file has a CA and ca of 1.005 in ExtGState which is incorrect. 
> I will fix this by clipping the alphaConstant to a 0..1 interval and put out 
> a warning.



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

Reply via email to