Usually this requires a macro structure with header, footer and body - pagination can be added as part of that - there are also elements that can force a page break but the idea with the split header-body-footer is to use fixed size for the tables e.g. (you can look up <macrolist> / <macro id=" "> functionality - but essentially:
1. Set up a page header section that includes any fixed content that should appear at the top of every page, such as a company logo or document title.
2. Add a page body section that will contain the dynamic content for each page, such as a list of transactions or customer information. Make sure to leave enough space at the bottom of this section for the footer content.
3. Insert a page footer section that includes any fixed content that should appear at the bottom of every page, such as page numbers or a legal disclaimer.
4. To paginate the content in the page body section, use the "split-by-page-break" attribute on the appropriate element. For example, if you want to split a list of transactions into pages, you could wrap the transaction table in a <table> element with the attribute "split-by-page-break='true'".
5. If necessary, you can further customize the pagination behavior by using the "start-new-page" attribute on specific elements. For example, you could use this attribute to ensure that a new page always starts with a specific section header or a certain type of transaction.
6. Preview your template and adjust the pagination as needed until you are satisfied with the results.