3

Is it possible to generate a PDF file using ReportLab in such a way that the front page (and possibly table of contents) are excluded from the page numbering done by Platypus?

antialiasis
  • 831
  • 1
  • 8
  • 19

1 Answers1

3

Yes. The first example on chapter 5 of the user guide, SimpleDocTemplate has two hooks:

doc.build(Story, onFirstPage=myFirstPage, onLaterPages=myLaterPages)

Just change myLaterPages definition to conditionally print the page number.

Paulo Scardine
  • 73,447
  • 11
  • 124
  • 153