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

    I’m wondering if there is a way to set footer only display on last page or is there a way to get total page before render. My code Java api is to create pdf file based on a html url.
    Thanks for help.


    The feature 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.

    As a workaround it you may use a conditional page break to move some content to next page (if needed, to make the last page not totally blank) and a footnote.


    text text text …

    the last text section…
    trailing footer[/language:ci6mh5m2]
    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.

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

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