Scenario
With Freemarker code integrated into Advanced PDF/HTML Templates, it is attainable to insert page breaks within the PDF document. It is required to modify the current template to achieve this customization.
Solution
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
- Preferred Advanced PDF/HTML Template: Click Edit/Customize
- Top Right Corner: Toggle Source Code
- Source Code: Find the line where the page break should be added
- Enter the <pbr></pbr> tag
Example:
<table></table>
<pbr></pbr>
<div></div>
<pbr></pbr>
<p></p>
<pbr></pbr> - Click Save
Note: User will need to add the tag at every end of the other HTML tags, and it can't be inside a table. In Advanced PDF/HTML Template, using the <pbr> (PDF Page breaks) tag inside a table may cause the error "<pbr> tag can't have kids: ignoring <table>", when saving the template.