svg2pdf icon indicating copy to clipboard operation
svg2pdf copied to clipboard

Messed up transformation of groups

Open EQt opened this issue 3 years ago • 2 comments

See for example: The clip path is not transformed in the PDF.

The bug also appears sometimes for <image> in a <g>roup.

EQt avatar Feb 18 '22 12:02 EQt

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?

EQt avatar Feb 18 '22 13:02 EQt

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 ...

reknih avatar Mar 11 '22 10:03 reknih