[reportlab-users] Reportlab + SVG

Dinu Gherman gherman at darwin.in-berlin.de
Mon Mar 31 02:09:02 EDT 2014


Richard Shea:


> It's a long time since I looked at this subject so I thought I would ask

> for an update.

>

> If I have an SVG file I wish to embed in a Reportlab generated PDF is

> the recommended approach to use PIL (or Pillow ?) to convert it to a

> non-vector format and use the result of the process to initialise a

> Reportlab Image object ?

>

> I'm asking because I thought sometime I read about a more direct

> approach where ReportLab might deal with SVG's directly but now I go and

> look for a reference to that idea I can't find it.


You might want to look at this:

https://pypi.python.org/pypi/svglib/0.6.3

It's somewhat dusted, not Python 3.0, and comes with a few limitations, mostly given by SVG features not mappable to ReportLab Graphics features, like gradiation, some font magic and probably a few others...

Regards,

Dinu



More information about the reportlab-users mailing list