Kozea / Kozea/CairoSVG

SVG to PDF render improper PNG position

Open
#411 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
951
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/Kozea/CairoSVG/assets/17413180/711b611d-f528-462d-a3bf-e53a66ca324c)

Expected result:

![Screenshot from 2024-01-05 17-53-36](https://github.com/Kozea/CairoSVG/assets/17413180/76e6fd2f-a332-4a58-8ff2-c303ea88c404)

```

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](https://github.com/Kozea/CairoSVG/files/13847640/P6.zip)

Any help would be appreciate it.

Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the provided P6.svg archive and the cairosvg.svg2pdf command, then compare PNG placement in the generated PDF with the expected screenshot. Done means the embedded PNG images render at their intended positions without breaking the existing SVG-to-PDF conversion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.