[reportlab-users] Add page break to Canvas object.
Juan Efren Castillo
juanefren at gmail.com
Sat Aug 28 21:44:44 EDT 2010
I need to generate a 2 pages pdf report. Pages are completely independent.
tried using:
mycanvas.drawString(x, y, "Printing on Page 1")
mycanvas._pageNumer = 2
mycanvas.drawString(x, y, "Printing on Page 2")
and:
mycanvas.drawString(x, y, "Printing on Page 1")
P = PageBreak()
P.drawOn(p, 0, 1000)
mycanvas.drawString(x, y, "Printing on Page 2")
But everything is printed on the same page.
How should I add a page break to this Canvas instance ?
Cheers...
--
Juan Efrén Castillo Encinas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100828/37828cf8/attachment-0001.html>
More information about the reportlab-users
mailing list