New Post Pagination features

Hi,

I understand that the latest release (2018.2.x) contains new post pagination features, including setting the margins for sections via a script.
What I would like to know is how this feature works.
We use an invoice template that will be used by multiple offices but the footer differs in size based on the office (bank information is different or specific payment terms are included).
When changing the margins for the footer section of the specific Master page will the system reformat the detail lines so it will not cross the footer boundary? And if the footer becomes smaller will it then fit more detail lines on the page or will the system just remember the initial footer size and “ignore” the new size?

Thanks

It seems that after some searching I found the answer myself.
When creating a post pagination script I can change the margin via:
merge.section.margins.bottom = “size in inches”;

It does adjust the total number of detail lines based in the size so this is perfect for what I need.