PD4ML v4 › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Java PDF Generation page-specific footers This topic has 1 reply, 2 voices, and was last updated Feb 24, 201219:54:21 by Anonymous. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts josh.trow February 24, 2012 at 19:54 #26691 I’m trying to generate a PDF with a certain footer on certain pages, and I’m wondering if there is a way to do this (page numbers are for example): Pages 1-3 : Text footer, no page numbers Pages 4-20: Text footer WITH page numbers. starting at 1 Pages 21-23: Text footer with page numbering restarted at 1 It is more important to get the first 2, the third item is simply a nice-to-have. Do you have any suggestions or methods to make this work? I am using PD4ML 371b9 Volume. I think I’m essentially looking for a Java-based option of the ‘scope’ attribute of the JSP tag… Anonymous 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() Author Posts Viewing 2 posts - 1 through 2 (of 2 total) The forum ‘General questions / FAQ’ is closed to new topics and replies.