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 markup? For example

    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.

    [language=xml:20jqbs4i]

    Last page header

    remaining content[/language:20jqbs4i]

    footer substitution: define last page footer as a footnote

    [language=xml:20jqbs4i]end of the document content


    Last page footer
    [/language:20jqbs4i]

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

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