Is it possible to create a dynamical (non-fixed height) footer, which will influence the bottom margin of the page?

The footer of the first page has a resume and other information (like a cc-list) for the human reader. This footer is very dynamical in size.

The footer should always be positioned at the bottom of the page. If needed the page break of the document should be just above the footer.

To the best of my knowledge, it is not possible at the moment for the following reason:

We can’t programmatically set the bottom margin of a MasterPage.

We do not have access to the physical position of the cursor on the page ,allowing us to programmatically calculate if there is enough room or not, thus triggering the overflow.

Hi

It’s been more than 2 years now and current version is 2020.1 Is there possible solution for this one?

Thanks

Nope.
A master page is static and page margins are static as well.
As a work around one could think about nested tables with footer and subfooter in the most outer table to recreate the wanted feature. Just before pagination starts those footers are calculated and their sizes are handled as static during pagination. (Gives some strange output when a currency subtotal needs a line wrapping.) Only in a handfull of documents a work around could work.

Actually there is something your can try:
You can now, from a Post Pagination script, change the header and footer margin of a Master Page.
Like this:

var masterA = merge.template.masterpages["Master page A"];

masterA.margins.header = "2in";

masterA.margins.footer = "2in";

Now remember that a Post Pagination Script, as the name state, is executed after the pagination process. That is why you will need to recall the pagination like this:

merge.section.paginate();

I never tried it myself but it could work.

1 Like