Skip to footer content

How to Add Headers and Footers in PDF Using IronPDF

In this tutorial, you will learn how to create PDF documents featuring text headers and footers using the IronPDF library in C#. The process begins with ensuring the library is installed in your Visual Studio project. After setting up the library, you'll import it into your code. A Chrome PDF Renderer is instantiated to generate a PDF document from HTML content using the RenderHtmlAsPdf method. The tutorial provides instructions to add a centered header and footer to each page using the TextHeaderFooter class, which are then applied to the PDF document using the AddTextHeaders and AddTextFooters methods. Finally, the PDF is saved with a specified file name. The tutorial emphasizes the ease and efficiency of creating professional-looking PDFs with consistent headers and footers. The video encourages users to explore additional functionalities and provides links for further learning. Viewers are invited to like, subscribe, and explore Iron Software's offerings.

Further Reading: How to Add Headers and Footers

Chipego
Software Engineer
Chipego has a natural skill for listening that helps him to comprehend customer issues, and offer intelligent solutions. He joined the Iron Software team in 2023, after studying a Bachelor of Science in Information Technology. IronPDF and IronOCR are the two products Chipego has been focusing on, but his knowledge of all products is growing daily, as he finds new ways to support customers. He enjoys how collaborative life is at Iron Software, with team members from across the company bringing their varied experience to contribute to effective, innovative solutions. When Chipego is away from his desk, he can often be found enjoying a good book or playing football.