Placing form footer on last page of AR Invoices automatically

SOLVED

We sometimes have multi page AR invoices. Prior to my joining the company, reports for specific number of pages were created so our terms and total print on the last page.I'm making some changes that will result in having different invoices for different purposes. I don't want to create six versions of  each one of those invoices just so the footer is on the last page. 

Is there a way to have the form footer print on the last page automatically?