[reportlab-users] using renderPM with platypus

Robin Becker robin at reportlab.com
Sun Mar 26 13:48:10 EST 2006


Andy Robinson wrote:
> will at phototropia.org wrote:
>> Friends:
>>      Can you use renderPM with platypus objects(particularly tables and
>> paragraphs.)
> 
> No, generally not.

yes I misunderstood. renderPM produces pixmaps via a canvas renderer and 
those pixmaps can be used as Drawings which are already flowables. The 
standard renderPM canvas doesn't support the code from platypus 
paragraph, tables etc.


> 
> The graphics submodule was originally just designed to do just charts 
> and has a different metaphor.
> 
> Internally we have written some pretty complex widgets to render certain 
> fiddly tables, so that customers can then use them in the web and in 
> Quark documents.  With hindsight we came to wish that all the graphics 
> renderers were just "a different canvas class" with the same graphics 
> primitives, .....
.
internally we have already done this without using special widgets. 
Renderers already support the idea of canvases. An extension allows us 
to support most of the features needed for paragraphs, tables etc etc. 
The real problem lies in the special nature of the PDF canvas. It's 
unlikely that anyone would want to have multi page bitmaps or 
annotations or bookmarks etc etc.
-- 
Robin Becker


More information about the reportlab-users mailing list