[reportlab-users] Embedding Platypus Story in Canvas
Rich Shepard
rshepard at appl-ecosys.com
Mon Nov 5 13:26:51 EST 2007
I've written the report cover page as a platypus story, but have the rest
of the report writing directly to the canvas. I'd like this to be a single
pdf file, with page numbers beginning immediately after the cover page.
The function begins with
Title = self.rptinfo
pg = canvas.Canvas(Title, pagesize=LETTER)
and I proceed to define a platypus story and table. This ends with
doc.build(story)
but that prints the document, if I correctly understand the dynamics.
What do I need to change so I can continue the document writing to pg, and
ending each page with pg.showPage().
While I'm at it, am I correct that I can print the pagination by
pgnum = pg.getPageNumber()
pg.drawCentredString(306,36,pgnum)
pg.showPage()
?
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