Re: Reportlab + SVG

Dinu Gherman <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.