Hi, in one of my svgs to be included in a pdf, I'm trying to embed an svg image from a local file, on my Node server, through:
<svg><image href="full-path-to-local-svg-image-file/test-image.svg"/></svg>
This works successfully for me for local png files (.png).
But if I try the same with an svg file, I get the error:
"SVGElemImage: failed to open image "full-path-to-local-svg-image-file/test-image.svg" in PDFKit"
Is loading of svg files through <image href="..."> supported or not?
Hi, in one of my svgs to be included in a pdf, I'm trying to embed an svg image from a local file, on my Node server, through:
<svg><image href="full-path-to-local-svg-image-file/test-image.svg"/></svg>
This works successfully for me for local png files (.png).
But if I try the same with an svg file, I get the error: "SVGElemImage: failed to open image "full-path-to-local-svg-image-file/test-image.svg" in PDFKit"
Is loading of svg files through
<image href="...">
supported or not?Thanks for any hints on this.