[reportlab-users] changing header and footer on every page in
a PDF document
robin at reportlab.com
Wed Dec 1 06:17:33 EST 2004
Satchidanand Haridas wrote:
> I am using reportlabs to create a pdf document which requires a
> different header and footer on every page. Is there a way to do that in
> reportlab? Do I need to use a different Page Template for each page or
> is there an easier way?
> Thanks in advance.
You can decorate pages using an onPage or onPageEnd function. These can be set
on the page templates. Alternatively use a derived pagetemplate class with
overridden beforeDrawPage or afterPageDraw methods.
More information about the reportlab-users