<image> tag in svg
Hi,
I recently ran into an issue with converting svg with <svg><image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="data:image/png;base64,[base64 stuff]"></image></svg>
and the resulting pdf is blank. I believe this used to work a few months ago - not sure what changed since then. I've attached a txt file including the URI for reference.
URI.txt
Is this an issue you can address, or should I be looking somewhere else? Thanks. [edit: I'm using pdfkit 0.8.2]
In SVG1 the width & height attributes are required. When they are missing they are assumed to be 0 (so the image isn't visible). The SVG2 specification makes them optional but this is not yet supported by SVG-to-PDFKit.
Okay, right. For reference, the image element itself needs to have the height and width properties. Thank you.
Please update about the support for <image> tag in svg for SVGtoPDF