[reportlab-users] Add page break to Canvas object.

Andy Robinson andy at reportlab.com
Wed Sep 1 11:16:37 EDT 2010


On 29 August 2010 02:44, Juan Efren Castillo <juanefren at gmail.com> wrote:

> I need to generate a 2 pages pdf report. Pages are completely independent.

> tried using:

>


When drawing with the canvas, use
myCanvas.showPage()

The _pageNumber tells you it's a private variable you are not supposed
to modify. The PageBreak() object is also for use within Platypus -
long, flowing documents - and it sends a message to the document
processor (DocTemplate class) to output a new page. It should not
be used with the Canvas.

I'm hoping our various manuals and test cases point people correctly
but if we had any misleading documentation anywhere, please point it
out so we can improve it!

Best Regards,

--
Andy Robinson
CEO/Chief Architect
ReportLab Europe Ltd.
Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK
Tel +44-20-8545-1570


More information about the reportlab-users mailing list