Add page break to Reportlab Canvas object

前端 未结 1 1143
感动是毒
感动是毒 2021-02-07 09:32

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         


        
相关标签:
1条回答
  • 2021-02-07 10:02

    Just call mycanvas.showPage() once page 1 is done -- this way, the rest of the output goes to page 2. See the docs.

    0 讨论(0)
提交回复
热议问题