Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #28400

    There is a way to define initial page number within HTML?

    Something similar to:

    <pd4ml:page.footer initialPageNumber="3">
    <div class='footerPDF'>
    page $[page] of $[total]
    </div>
    </pd4ml:page.footer>

    I know that there is a way to pass it from JAVA API:

    PD4PageMark footer = new PD4PageMark();
    footer.setInitialPageNumber(0);
    footer.setHtmlTemplate("<div class='footerPDF'>page $[page] of $[total]</div>");

    Which doesn’t completely satisfy our needs.

    #28401

    With your particular footer sample there is a possibility to get a confusing footer text “page 3 of 1”. So some mechanism to impact $[total] value is also needed. That was a reason we did not copy the feature from PD4PageMark to inline HTML headers/footers.

    We could add the feature to <pd4ml:page.footer>, but first we need to review typical use cases and to think how to keep everything consistent there. Of course, we would appreciate your input.

Viewing 2 posts - 16 through 17 (of 17 total)

The forum ‘PD4ML Tips & Tricks’ is closed to new topics and replies.