Agregar Encabezados y Pies HTML IronPDF allows the developer to modify PDF documents to use customized headers and footers. This code example shows how developers can achieve this using the ChromePdfRenderOptions class along with the HtmlHeaderFooter class. The HtmlHeaderFooter class allows the developer to customize a PDF's header or footer using HTML, as opposed to just using plain text (as is the case with the TextHeaderFooter class). Specify the HTML markup for the header or footer by calling the addHtmlFragment method on an instance of the class. This method accepts a string containing valid HTML5, CSS3, and JavaScript (ECMAScript 6). IronPDF will interpret the content in this string as rich hypertext markup, displaying it in resulting PDF documents in the same manner that a web browser would. The developer can use this class to create headers that incorporate images, colors, special typefaces, and other, more complex design elements. For more traditional and simplified text-based header/footer customizations, consider opting for the TextHeaderFooter class instead. Explore the HtmlHeaderFooter Class Documentation Enlaces de Documentos Ver en Github 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? Versión: 2025.11 recién lanzado Descarga Gratis de Maven 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