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 に答える
3
はい。ユーザー ガイドの第 5 章の最初の例、SimpleDocTemplate には 2 つのフックがあります。
doc.build(Story, onFirstPage=myFirstPage, onLaterPages=myLaterPages)
myLaterPages の定義を変更して、条件付きでページ番号を出力するだけです。
于 2011-02-10T11:16:38.587 に答える