[ 
https://issues.apache.org/jira/browse/BATIK-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16204553#comment-16204553
 ] 

Felix Natter commented on BATIK-1205:
-------------------------------------

Update: I fixed the bug in GradientExtensionHandler:
https://github.com/fnatter/svgtest/commit/bb5b87a3f508175286e073fc1cc539784f438f4c

At least this works for my SVGs. Does someone want to review this
(I don't know gradientTransforms, I fixed by trial and error)?

How about including this code in batik proper after you've reviewed it?
This is not really critical for me as I can use
ctx.setExtensionHandler(new GradientExtensionHandler());

Thanks and Best Regards,
Felix

> Please handle java.awt.LinearGradientPaint and java.awt.RadialGradientPaint
> ---------------------------------------------------------------------------
>
>                 Key: BATIK-1205
>                 URL: https://issues.apache.org/jira/browse/BATIK-1205
>             Project: Batik
>          Issue Type: Improvement
>          Components: SVGGraphics2D
>    Affects Versions: 1.9
>            Reporter: Felix Natter
>
> Dear batik developers,
> we (the Freeplane project) are using svgSalamander to render SVG icons,
> and batik/fop to export SVG/PDF. There is a problem if svgSalamander
> generates "Multiple" gradients (java.awt.Linear/RadialGradientPaint) which
> results in wrong color/gradient rendering in the PDF.
> The problem is that these "paints" are not handled in
> org.apache.batik.svggen.SVGPaint.toSVG(Paint).
> Here is a sample project which renders three sample SVGs using svgSalamander,
> and exports to PDF using batik+fop:
>   https://github.com/fnatter/svgtest
> In order to test this, please do:
> - clone
> - gradle build cleanEclipse eclipse
> - import project into eclipse
> - Start org.freeplane.svgtest.TestBatik
> - choose a file to save the PDF to
> - notice that color rendering is broken
> I think this can be solved by BATIK-1032?
> Could you consider applying that?
> Please tell me if I can do anything to help fix this.
> Many Thanks for the very useful software :-)
> Best Regards,
> Felix



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to