I am customizing standard dunning form according to our requirement. I have to include bank details of the company as footer in the form. If line items are less bank details should come in 1st page or if there are more line items it has to come in second page. It should be of dynamic window. How to do this?