[reportlab-users] SimpleDocTemplate and clever in document numbering

Laszlo KREKACS laszlo.krekacs.list at gmail.com
Fri Jun 18 08:11:51 EDT 2010

Dear Andy,

On Tue, Jun 15, 2010 at 5:43 PM, Andy Robinson <andy at reportlab.com> wrote:

> This tells the engine to change from using the "main" page template to

> the "appendix" page template on the next page break.  Then you will

> probably add a page break.  Thereafter, all your content will appear

> in "appendix" pages, which can have their own methods to decorate the

> page.

Thank you very much, for your answer, I will definitely play with it.
When I change the page template, do it means, the doc.page
builtin variable gets zeroed at the next page template?

Or is there some builtin variables, like
- total page number
- page number within the page template ?

Doing my own class make sense, as I already instantiated from
SimpleDocTemplate, just I need to modify a little to have
BaseDocTemplate as parent.

Also just out of curiosity, is there some way to pass a variable
to the process method?
Something like story.append(myvariable=4) ....

Best regards,

More information about the reportlab-users mailing list