deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
307 stars 79 forks source link

SVG not imported in PDF #356

Closed TheeAntoine closed 1 year ago

TheeAntoine commented 1 year ago

Hi everyone, I have an issue when I try to import an SVG image on my PDF, I used the following code :

drawing = svg2rlg("Logo_CE.svg") renderPDF.draw(drawing, canvas, 23.5*mm,13.6*mm)

When I open my PDF file, nothing appears : Screenshot_27

This is my expected result : Screenshot_28

When I import a PNG file it works but I want to do the same with SVG. Someone know how to solve this ?

github-actions[bot] commented 1 year ago

Thank you for raising your first issue! Your help to improve svglib is much appreciated!

claudep commented 1 year ago

The first thing to check is to only convert your SVG logo to PDF, to check if the rendering of the SVG file hasn't any issue.

claudep commented 1 year ago

Closing, waiting for an answer to my remark above.