HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › scope = "lastpage"? › Re: Re: scope = “lastpage”?
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]
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]