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