Managing Document Page Breaks
Published on February 10, 2026 DRTE
Overview
By default, document sections render immediately after one another. To prevent a section from being split across two pages, or to start a new chapter on a fresh page, apply a specific CSS class to the HTML source of that section.
| Example objective: Move a section (for example, "Order Summary") from the middle of a page to the start of the next page. |
Example
Example document where the Order Summary section starts mid-page (1 of 2)
Order Summary section moved to the start of the next page (2 of 2)
Instructions
1. Locate the Target Section
Navigate to your Doc Template record. Under the Related tab, find the Button Sections/Doc Sections list and click the Section Number you wish to move to a new page.
Doc Sections list on the Doc Template record
2. Access the HTML Source Editor
Once the specific Section record is open:
- Locate the header action buttons.
- Click Update HTML Content Source.
| Note: Do not simply type in the standard text editor. You must use the Update HTML Content Source action button to modify the underlying code. |
Update HTML Content Source action on the Section record
3. Apply the Page Break Class
In the pop-up window, you will see the HTML string. Identify the first container tag (usually <p> or <div>) and insert the page-break class attribute.
Standard code: <p><strong>Order Summary</strong></p>
Original HTML source before the change
Modified code: <p class="page-break-before-always"><strong>Order Summary</strong></p>
HTML source with the page-break-before-always class added
| Property | Value |
| CSS Class | page-break-before-always |
| Placement | Inside the opening bracket of the first tag. |
4. Save and Validate
- Click Next to confirm the change.
- Click Preview Document in the top menu.
- Verify that the content now begins on a new page in the PDF viewer.
Preview Document showing the section starting on a new page
| Success check: The section heading appears at the top of a new page in the previewed PDF, with no unexpected blank pages. |
Best Practices
- Avoid redundancy: Only apply this class to the first element of a section.
- Table consistency: If a section contains a large table, applying this class ensures the table header starts at the top of the page, improving readability.
| Formatting check: Always use the Preview function after a change to ensure the page break hasn't created unnecessary blank pages. |
Knowledge Article Number: KA-00099