Non-numbered pages in ReportLab

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

+3
source share
1 answer

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

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

Just change the definition of myLaterPages to conditionally print the page number.

+3
source

Source: https://habr.com/ru/post/1791183/


All Articles