Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26500

    Is there a way to define a header and/or footer to only print on the last page using the

    <pdrml:page.header> markup? For example
    <pd4ml:page.header  scope="lastpage" >

    I know there is a skiplast, which skips printing on the last page but I have documents that require a footer/header to appear only on the last page (on an unknown lenght document).

    Thanks,

    Derek

    #28347

    There is a conceptual issue to implement that.

    Let’s say page height is 800px, header is 200px high and the content on the last page takes 700px.

    Where should it place the header in the situation to? The only technically correct way is to add an extra page to print the header only. But nobody wants to have such trailing blank pages…

    As a workaround I would recommend the following:

    header substitution: add an explicit page break before the last page, followed with the header body.

    <div>Last page header</div>
    remaining content

    footer substitution: define last page footer as a footnote

    end of the document content
    
    <hr>
    Last page footer

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

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