PDF Cover Image in SVG format
Posted: Wed Feb 05, 2020 11:31 am
I'm trying to add an SVG image to the cover of PDF output.
My SVG document contains a PNG image, text, and other vector graphics:
<defs>
<image width="34" height="34" id="logo" href="logo.png"/>
</defs>
<rect x="0" y="0" width="100%" height="100%" rx="10" ry="10"
stroke: #005000;
stroke-width: 3;"/>
<text x="45%" y="95%" color="#FFFFAA" font-size="0.7cm"> Sample </text>
<use id="logo" href="#logo" ransform="matrix(0.6,0,0,0.599,147,138)"/>
It's not working until I remove the PNG image.
Is there anyway to keep the PNG image, text, and vector graphics in a PDF cover?
My SVG document contains a PNG image, text, and other vector graphics:
<defs>
<image width="34" height="34" id="logo" href="logo.png"/>
</defs>
<rect x="0" y="0" width="100%" height="100%" rx="10" ry="10"
stroke: #005000;
stroke-width: 3;"/>
<text x="45%" y="95%" color="#FFFFAA" font-size="0.7cm"> Sample </text>
<use id="logo" href="#logo" ransform="matrix(0.6,0,0,0.599,147,138)"/>
It's not working until I remove the PNG image.
Is there anyway to keep the PNG image, text, and vector graphics in a PDF cover?