Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Harald Ulriksen 207 posts 249 karma points
    Oct 20, 2011 @ 12:40
    Harald Ulriksen
    0

    Gradient Transform fail

    Hi,

    I'm trying to implement a fairly complex gradient transform. The svg I have works perfectly in inkscape but it does not render correctly in the PDF

    Here's the result I'm looking for from inkscape

    The result in the pdf:




    SVG elements: 

                    <linearGradient id="SVGID_1_A" gradientUnits="userSpaceOnUse" x1="427.084" y1="341.6841" x2="367.8203" y2="444.3318" gradientTransform="matrix(0.9986 -0.0523 0.0523 0.9986 -21.6101 22.4483)">
                      <stop  offset="0.33" stop-color="#FBF6E8"/>
                      <stop  offset="0.5055" stop-color="#F7F5E8"/>
                      <stop  offset="0.7151" stop-color="#ECF1E8"/>
                      <stop  offset="0.9413" stop-color="#D8ECE7"/>
                      <stop  offset="1" stop-color="#D2EAE7"/>
                    </linearGradient>
                    <polygon fill="url(#SVGID_1_A)" points="325.127,424.599 329.014,369.61 464.35,362.518 466.859,410.403 "/>
                

     

    Thanks,
    Harald

     

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Oct 20, 2011 @ 17:45
    Darren Ferguson
    0

    Hi Harald,

    I can't see the difference!

    If you can explain it in a way that I understand I'm happy to look into it.

    Thanks!

  • Harald Ulriksen 207 posts 249 karma points
    Oct 20, 2011 @ 22:58
    Harald Ulriksen
    0

    Hi there,

    the shape is ok, but the gradient fill is not correct. If you look at the shading the top one has very little blue in it, while last one has almost all blue. I suspect it's the gradientTransform attribute which is not picked up. If you add <svg> tag add it to a file and look at it in inkscape or illustrator and then try it in the pdf you will clearly see the difference in the gradient background.

    Cheers,
    Harald

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Oct 21, 2011 @ 10:07
    Darren Ferguson
    0

    Hi Harald,

    I don't have inscape or illustrator - this looks like an issue for ibex support which I'll happily forward to them could you provide me with the complete PDF, XSL-FO file and any .svg files?

     

    Thanks

  • Harald Ulriksen 207 posts 249 karma points
    Oct 31, 2011 @ 09:58
    Harald Ulriksen
    0

    I'll get back to you on this, will need to make sample xsl-fo and svg file, currently too much stuff in it. 

Please Sign in or register to post replies

Write your reply to:

Draft