XAML a PDF (MAUI) This example demonstrates how a MAUI page can be converted into a PDF document. The IronPdf.Extensions.Maui package is an extension of the main IronPdf package. Both the IronPdf.Extensions.Maui and IronPdf packages are needed to render a content page from a MAUI application to a PDF document. Rendering from a MAUI page will give you access to all the features offered by the RenderingOptions class. The resulting PDF document can then either be exported as a PDF file or viewed with a MAUI PDF viewer. How to Convert XAML Files to PDFs in MAUI Install the IronPDF Library for XAML to PDF Conversion Instantiate the **ChromePdfRenderer** class Use the **RenderingOptions** class to add text and HTML header and footer Use the `RenderContentPageToPdf` method to render XAML files to PDF Download the resulting PDF document to the desktop Below is a sample code demonstrating the conversion process: ChromePdfRenderer: This class is responsible for converting web content to PDF format using the Chrome rendering engine. RenderingOptions: This property allows customization of the PDF document, such as headers and footers, page size, margins, etc. RenderContentPageToPdf: This is a method from the IronPdf.Extensions.Maui package that facilitates rendering a MAUI ContentPage to a PDF document. SaveAs: This method saves the generated PDF document to a specified file path. Learn to Convert XAML to PDF in MAUI with IronPDF Ver en GitHub Código https://github.com/iron-software/IronPdf.Examples/tree/main/examples/xaml-to-pdf-maui 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