I have an SVG file and I want to convert it to use it in a PDF.
It is rendered well on my browsers (chrome, edge, firefox). File available here: https://gist.github.com/acourdavault/329b8670517e0716cd38eab202e2ca0e
I tried magick, inkskape, librsvg2 to convert it to png, and or pdf. the biggest problem is that stop-color and stop-color-opacity are not supported Note, here only inkscape gives this message, the other converter don't give any information, even in verbose but the result is terrible ```bash
** (inkscape:648850): WARNING **: Unimplemented style property SP_PROP_STOP_COLOR: value: #ffa500
** (inkscape:648850): WARNING **: Unimplemented style property SP_PROP_STOP_OPACITY: value: 0.59999999999999998
** (inkscape:648850): WARNING **: Unimplemented style property SP_PROP_STOP_COLOR: value: #ffff00 ```
The PDF (to keep the format vectorial) would be ideal i guess, but i need to be able to run this from the command line.
Do you have an idea of why, this does not work and how to fix it?
Remarks I use SVG class, but the style is in a style § in the SVG itself
solution
Solution from ccprog
I moved the defs at the top of the svg xml, I used fill=url(#gradientid) to declare the gradient instead of classes I replaced the definition of the stop-color and stop-opacity that where in classes to inline them in the stop tags.