[reportlab-users] page break command

David Ostroske eksortso at gmail.com
Tue Mar 17 16:50:44 EDT 2009


2009/3/17 John Keubler <johntk1 at verizon.net>:

> what is the command for a page break or a new page?


If you're just using the canvas, then canvas.showPage() will take you
to a new page.

If you're using Platypus, you just need to put a PageBreak flowable
into your story. If you're changing templates, make sure to insert
NextPageTemplate before the PageBreak.

Don't forget these!
from reportlab.platypus.doctemplate import NextPageTemplate
from reportlab.platypus.flowables import PageBreak

-- Dave O


More information about the reportlab-users mailing list