Page Breaks
This document demonstrates explicit page breaks. Each chapter below starts on its own fresh page via AddPageBreak(), regardless of how much room was left on the previous page.
Page 1 of 4
Page Breaks
A page break is a structural instruction, not a measured element - it has no height and produces no visible output. The layout engine special-cases it before the usual fit-or-split logic.
Page 2 of 4
Page Breaks
A leading page break (one with nothing placed on the page yet) is a no-op, so chapters never accidentally produce a blank page before their content.
Page 3 of 4
Page Breaks
Combine AddPageBreak() with headings to give every major section of a long report its own page, the way a printed document's chapters typically work.
Page 4 of 4