[reportlab-users] Embedding Platypus Story in Canvas

Rich Shepard rshepard at appl-ecosys.com
Mon Nov 5 18:55:51 EST 2007


On Mon, 5 Nov 2007, Tim Roberts wrote:


> By default, the "build" method calls Canvas.save() to generate the PDF,

> but you can override that by setting doc._doSave = 0. Then you can do

> doc.canv.showPage() and start drawing more stuff. You could even derive

> your own class from SimpleDocTemplate, and override afterInit or

> beforeDocument to set that.


Tim,

Thanks.


> That should work. I usually store the page size in a global somewhere,

> and then do

> pg.drawCentredString( PageSize[0] / 2, 36, pgnum )

> so I can switch to landscape, for example, without great pain.


Good idea.

Also, I inadvertently deleted your other message. But, I see in
test_table_layout.py that I can explicitly place a paragraph in one cell.

Rich

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863


More information about the reportlab-users mailing list