Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1205

Please handle java.awt.LinearGradientPaint and java.awt.RadialGradientPaint

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: SVGGraphics2D
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fnatter Felix Natter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: