I'm trying to transform an svg with tcpdf to pdf. I'm using
$pdf->ImageSVG(
$file=$my_source,...
Everyting works fine until there is an other svg image inserted inline in the $my_source like:
<image xlink:href='subSvg.svg'/>
but i always get error messages by tcpdf. Has anyone experiences with svg inserting sub-svg images in tcpdf?
Update:
I tried it again: it is only a warning. PDF is generated. Tcdpf has only trouble to free ressources of the sub svg: Warning: xml_parser_free(): 19 is not a valid XML Parser resource in tcpdf.php on line 22913
This is an example subSvg.svg
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="300" height="300"
viewBox="0 0 300 300"
preserveAspectRatio="xMinYMin meet">
<desc>123456</desc>
<g id="elements" fill="black" stroke="none">
<rect x="0" y="0" width="30" height="30" />
</g>
</svg>
Is it possible to reference the svg inline (data:image/svg+xml;utf8,)?
<image xlink:href='@<svg ...'/>