[reportlab-users] Using reportlab for generating graphics

Adrián Ribao Martínez aribao at gmail.com
Tue Apr 1 13:57:50 EDT 2008


El Martes, 1 de Abril de 2008, Robin Becker escribió:

> Adrián Ribao Martínez wrote:

> > El Martes, 1 de Abril de 2008, Rich Shepard escribió:

> >> On Tue, 1 Apr 2008, Adrián Ribao Martínez wrote:

> >>> I'd like to know if I can generate png graphics using other library

> >>> like PIL.

> >>

> >> ReportLab uses PIL; I thought that it required it.

> >>

> >> Rich

> >

> > But when I do d.asString() it requires renderPM, is there any workaround?

>

> .......

> _renderPM is a C extension that is used by the

> reportlab.graphics.renderPM.py module. If you can bear to do so you can

> hand build or get someone friendly to do so.

>

> The source of our extensions is in

>

> http://www.reportlab.co.uk/svn/public/reportlab/trunk/rl_addons

>

> I know that it's possible to build the extensions fairly easily as Andy

> Robinson has just done it with xubuntu and he's normally a windows person.

>

> It should be possible to use PIL directly if that's what you want, but our

> library doesn't have a direct PIL canvas as yet.


Ok, thank you!
Are you planning to get rid of renderPM and use a direct PIL canvas?
In the meanwhile I probably use google charts or maybe I'll try getting the
image from reportlab in eps format and transform it to png using PIL.

--
Adrián Ribao Martínez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080401/fe9cc744/attachment.pgp>


More information about the reportlab-users mailing list