svg2pdf.js
svg2pdf.js copied to clipboard
image elements with different width/height attributes than the source image are stretched
This is probably due to a missing viewBox transformation. However, reading the widths from bitmap images is probably not trivial.
We're running into this issue as well.
A start of a solution to toe svg2pdf code seems to be:
which I took from:
https://github.com/parallax/jsPDF/issues/3401
Good idea. I would happily merge a PR.
@HackbrettXXX we intend to put this (and in larger view, html => svg => pdf) up as a student project. But that will only start in september 2024. At that moment we hope for the student to solve this and deliver a PR.