[reportlab-users] changing header and footer on every page in
a PDF document
Satchidanand Haridas
sharidas at zeomega.com
Wed Dec 1 07:46:13 EST 2004
Hi,
Thanks for the reply. I am relatively new to Reportlab. I would highly
appreciate it if you can provide some more information about the
approach you described .
As I understand, the beforeDrawPage method is called indirectly through
the build() method whenever a flowable spills into a new page or if we
explicity call a PageBreak() method. Is this correct?
Thanks.
Satchit
Robin Becker wrote:
> 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.
More information about the reportlab-users
mailing list