Page Numbers and Page Breaks IronPDF’s flexibility when it comes to editing and rendering headers and footers to the developer's taste and functionality is unmatched. This feature allows us to merge more information about page numbering into the header or footer. In this example, we will show you how to deal with page numbers and page breaks in IronPDF. This operates within the two supported header and footer options, which include HtmlHeaderFooter and TextHeaderFooter. It is quite easy to handle either option. The class TextHeaderFooter defines PDF header and footer display options and uses a logical approach to rendering headers and footers for the most common use cases. You can set page numbers to display on the right, center, or left of the header or footer and also adjust the font type and size to make it consistent with the rest of your PDF body text. To create a page break in HTML to PDF in .NET, you can use the HTML snippet: For more details on how to use these features effectively, visit the IronPDF Documentation for Headers and Footers on the official website. Learn to manage HTML to PDF page breaks with IronPDF. View on GitHub Code https://github.com/iron-software/IronPdf.Examples/tree/main/examples/page-numbers-and-page-breaks Download ZIP Related Tutorial Related How-To Guide Class Documentation Get Language Packs Download IronPDF DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 16,425,128 | Version: 2025.11 just released Free NuGet Download Total downloads: 16,425,128 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)