#29824

PD4ML API/custom tags allow to define a scope for page header/footer. For example: scope=”1,2″, scope=”2+”, scope=”even”, scope=”skiplast”.

scope=”last” support is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.

In order to prevent it you may use a conditional page break to move some content (to make the last page not totally blank) and a footnote.

Example:

[language=html:1frmi1j1]….
….
text text text …

the last text section…
….
….
totals section[/language:1frmi1j1]

The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)

ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.