Page Numbers and Page Breaks
Page breaks in HTML work perfectly when rendering to PDF using IronPDF.
In HTML, a page break is a marker or instruction that tells a web browser or a rendering engine to start a new page when displaying or printing content. Page breaks are typically used when you want to control the layout of printed documents or ensure that certain content starts on a fresh page.
Furthermore, the code above configures rendering options to include the page number at the bottom center of the PDF document. The page number is displayed in the format "{page}
of {total-pages}
" and is limited to a maximum height of 15 units.