Description
I get this with the attached file:
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)
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.
Attachments
Attachments
Issue Links
- is related to
-
PDFBOX-3477 CA and ca values should be clipped
- Closed