开发者

Non-numbered pages in ReportLab

开发者 https://www.devze.com 2023-02-10 04:49 出处:网络
Is it possible to开发者_StackOverflow社区 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?Y

Is it possible to开发者_StackOverflow社区 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消