HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Java PDF Generation page-specific footers › Re: Re: Java PDF Generation page-specific footers
March 1, 2012 at 22:28
#28909
You may implement PD4PageMark.getHtmlTemplate(int) method, to return different footer definitions depending on a page number. See the last code sample on
http://pd4ml.com/cookbook/pdf_header_footer_generation.htm
PD4PageMark.setInitialPageNumber(-2) should (in theory) set page number 1 to the third page.
There is no way to reset page numbering. But you may generate two PDF documents with independent page numbering and to merge them. As far as I remember your PD4ML version supports PD4ML.merge()