Kozea / CairoSVG

Convert your vector images
https://courtbouillon.org/cairosvg
GNU Lesser General Public License v3.0
753 stars 149 forks source link

SVG to PDF render improper PNG position #411

Open GGPay opened 8 months ago

GGPay commented 8 months ago

Hi,

Thanks for you work and package.

I have an SVG with PNG images. PNG images converted improper position on a PDF.

result:

Screenshot from 2024-01-05 17-55-08

Expected result:

Screenshot from 2024-01-05 17-53-36


cairosvg.svg2pdf(url='P6.svg',
                 write_to='P6.pdf')

May be i missed something or messed up, but playing with parameters didn't get me the right result.

SVG: P6.zip

Any help would be appreciate it.

Thank you!

liZe commented 8 months ago

Hi!

I think that the problem is the same as #400. Looks like the transformation matrix is not applied correctly in patterns.