How to insert a SVG file in a PDF document?

后端 未结 4 1086
长情又很酷
长情又很酷 2020-12-19 19:50

I\'m trying use embeddSVG.py to embed an SVG in a PDF, but Adobe Acrobat Reader doesn\'t show svg content in my pdf.

4条回答
  •  轮回少年
    2020-12-19 19:59

    Maybe you can use svglib to convert your svg to pdf and then include it using pyPdf. Note that svglib seems to use reportlab so you can probably use their api to manipulate your file.

提交回复
热议问题