svg2pdf
svg2pdf copied to clipboard
Messed up transformation of groups
See for example: The clip path is not transformed in the PDF.
The bug also appears sometimes for <image>
in a <g>
roup.
I debugged a lot to understand the code structure and find a workaround in my debug branch. It works for clip_line.svg
example above but messes up on other instances, e.g. the tests/example.svg
.
Any ideas on why the code fails?
Hey! Sorry for the late response. Unfortunately, I don't have the bandwidth right now to fix this issue. The culprit could be that the group code seems to be doing nothing with the transform it's been given at all --- but the whole transform handling could be made more robust.
Eventually, I want to fix this by using transform matrices in the PDF content stream more rather than the pre-baked coordinates using the CoordToPdf
struct ...