Agregar Encabezados y Pies de Texto Clásicos There are two methods through which headers and footers may be added to a PDF document. They can either be added as a classic text format, with the option to merge in dynamic data. Or, they can be added through the much more flexible HTML format, which allows developers to render dynamic headers and footers through their HTML content. Steps to Add Headers and Footers to PDFs with IronPDF Today we will be looking at how you can add classic text headers and footers into your PDF documents in just a few simple steps. The first step towards adding customized Headers and Footers into your PDF documents is to ensure that the IronPDF library is included in your project with the using IronPdf; statement. Then, instantiate the ChromePdfRenderer, which provides the functionality to render your HTML content in pixel-perfect PDF documents. Next, configure the header settings. The FirstPageNumber property allows you to specify the starting page number, accommodating for a cover page if needed. The TextHeader properties enable you to customize the appearance, such as drawing a divider line, centering text (in this case, the document URL), selecting the font type and size, and creating a margin at the top of the page for the header. After configuring the header, set up the footer using the TextFooter properties. Similar to the header, you can draw a divider line, choose the font type and size, and include dynamic content like the current date, time, and page numbers with total pages. Finally, a margin is created at the bottom of the page to accommodate the footer. By following these steps, you can enhance your PDF documents with informative headers and footers that improve their professionalism and readability. Discover How to Add Headers and Footers with IronPDF Ver en GitHub Código https://github.com/iron-software/IronPdf.Examples/tree/main/examples/headers-and-footers Descargar ZIP Tutorial Relacionado Guía de Cómo Hacer Relacionada Documentación de Clase Obtener Paquetes de Idiomas Descargar IronPDF DLL Reportar un problema en esta página ¿Listo para empezar? Nuget Descargas 16,154,058 | Versión: 2025.11 recién lanzado Descarga Gratis de NuGet Descargas totales: 16,154,058 Ver Licencias
Producto completamente funcional Obtén 30 días de producto completamente funcional.Instálalo y ejecútalo en minutos.
Soporte técnico 24/5 Acceso completo a nuestro equipo de soporte técnico durante tu prueba del producto
Producto completamente funcional Obtén 30 días de producto completamente funcional.Instálalo y ejecútalo en minutos.
Soporte técnico 24/5 Acceso completo a nuestro equipo de soporte técnico durante tu prueba del producto