Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #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…


    You may implement PD4PageMark.getHtmlTemplate(int) method, to return different footer definitions depending on a page number. See the last code sample on

    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()

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.