[
https://issues.apache.org/jira/browse/FOP-2549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16400208#comment-16400208
]
Ivan Lagunov commented on FOP-2549:
-----------------------------------
I've just hit the same issue with the following example:
{code:xml}
<linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="61.1589"
y1="20.4216" x2="62.5398" y2="20.4216">
<stop offset="0.3576" style="stop-color:#464E54"/>
<stop offset="1" style="stop-color:#AFB7BC"/>
<stop offset="1" style="stop-color:#4C555B"/>
</linearGradient>
{code}
It results in an invalid PDF that fails to open in Adobe Acrobat Reader. I use
FOP 2.1 with Batik 1.8 (DITA-OT 2.4.6).
> [PATCH] SVGs with radial gradiant causes PDF display error
> ----------------------------------------------------------
>
> Key: FOP-2549
> URL: https://issues.apache.org/jira/browse/FOP-2549
> Project: FOP
> Issue Type: Bug
> Components: image/svg
> Reporter: Matthias Reischenbacher
> Priority: Major
> Attachments: fop-2549-test-case.pdf, fop-2549-test-case.svg,
> fop-2549-test-case_wrong.pdf, fop-2549.patch
>
>
> A radial gradiant isn't processed correctly by FOP. E.g. the following
> gradiant:
> <radialGradient
> cx="51159.898"
> cy="57300"
> r="5279.6602"
> fx="51159.898"
> fy="57300"
> id="id0"
> gradientUnits="userSpaceOnUse">
> <stop
> id="stop28"
> style="stop-color:#fefefe;stop-opacity:1"
> offset="0" />
> <stop
> id="stop30"
> style="stop-color:#cdcece;stop-opacity:1"
> offset="0.58823502" />
> <stop
> id="stop32"
> style="stop-color:#9d9e9e;stop-opacity:1"
> offset="1" />
> <stop
> id="stop34"
> style="stop-color:#9d9e9e;stop-opacity:1"
> offset="1" />
> </radialGradient>
> is only outputted with one "Bound" entry in the PDF color function (instead
> of two).
> When opening the PDF with Adobe Acrobat the SVG is only partially displayed
> and an error message pops up after clicking on the image.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)