SVG support #209
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm prepared to take no as an answer but it may be still be useful to document this.
There are actually two very different ways to render an svg to PDF:
inkscape in.svg -o out.pdf
) I assume using inkscape as a dependency in img2pdf is not feasible, maybe there is a smaller library (cairo?) which could be used instead.As you pointed out, you can already convert svg to pdf today by just using inkscape. So there is no need for img2pdf to be able to do this as well. The main purpose of the existence of img2pdf is the assurance that it is lossless. If you don't need lossless, then there are plenty other tools (like imagemagick) that can do the same job. This also means that rasterization is not an option. One problem of converting SVG to PDF is, that some SVG features are just not supported by PDF so the conversion will be lossy.