There are two options available for this.
Option -1
With the PBR tag, a user can force a page break to pass an attribute to a section within the document.
MACROLIST tag is specified on the HEAD element. It contains MACRO elements, which are assigned an ID used to reference later in the document.
With help of PBR tag in the BFO we can have different Headers and footers in one PDF.
We can use the <pbs/> tag to break the page and to add a separate footer for the pages come after the <pbs/> tag.
Example:
Option -2
We can use the <pdfset> to add a new PDF tags. Each PDF tad will be considered as different page and can have its own Header and foooters in it.
Eample:
<pdfset>
<pdf>
…….
</pdf>
<pdf>
……
</pdf>
</pdfset>