[reportlab-users] SVG support on the Canvas?

Bill Janssen janssen at parc.com
Tue Jun 2 17:19:16 EDT 2009


Tim Roberts <timr at probo.com> wrote:


> Bill Janssen wrote:

> > Found it. http://lateral.netmanagers.com.ar/weblog/2008/09/10.html#BB753

> >

> > If I understand what you're doing, you're converting the SVG to PDF,

> > then pasting that PDF inline in the document that ReportLab is

> > generating.

> >

>

> Right. That's what you HAVE to do. The Acrobat readers don't

> understand embedded SVG (yet).


Sure, but there's an intermediate stage, an SVG interpreter as part of
ReportLab that walks the parsed SVG and re-expresses it in terms of RL
vector drawing calls, which of course then get turned into PDF. The
problem with embedding "raw" PDF is that it doesn't always work.

Bill


More information about the reportlab-users mailing list