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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.