Cookies This code demonstrates how to use IronPDF to authenticate a request using network credentials and apply cookies for rendering a webpage as a PDF. ChromePdfRenderer: Used for rendering HTML content into PDF format. RequestContexts.Global: Ensures that the PDF rendering maintains the same browsing context for lifetime of the process, enabling the use of cookies and authentication across requests. ChromeHttpLoginCredentials: Provides network authentication when accessing web pages that require login credentials. ApplyCookies: Applies the specified cookies and credentials to the HTTP request, vital for rendering secure pages. uri: Represents the web address of a page that needs to be rendered into a PDF and typically requires user authentication. In this example, it points to a locally hosted webpage. This setup is particularly advantageous when rendering PDFs from authenticated pages, such as invoices, reports, or dashboards that require user authentication. Learn to Apply Cookies in PDF Rendering with IronPDF. Ver en GitHub Código https://github.com/iron-software/IronPdf.Examples/tree/main/examples/cookies 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