Hello,
Is it possible to insert a SVG file with parameters in a document ?
I tried the syntax pathtosvg?param1=value1 as url in the image property but it does not work.
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 110 40" width="100%" height="100%">
<title>Button</title>
<defs>
<ref id="paramFill" param="color" default="blue"/>
<ref id="paramStroke" param="outline" default="navy"/>
</defs>
<g>
<rect id="button_rect" x="5" y="5" width="100" height="30" rx="15" ry="15" fill="url(#paramFill)" stroke="url(#paramStroke)" />
</g>
</svg>
<object type="image/svg+xml" data="button.svg?color=red&outline=black"> </object>
Users browsing this forum: No registered users and 1 guest