[reportlab-users] changing header and footer on every page in
a PDF document
Robin Becker
robin at reportlab.com
Wed Dec 1 06:17:33 EST 2004
Satchidanand Haridas wrote:
> Hi,
>
> 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.
>
> Regards,
> Satchit
>
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.
--
Robin Becker
More information about the reportlab-users
mailing list