You can create a bitmap image representing the current diagram using the CreateImage method. The method returns a Microsoft.Maui.Graphics.IImage instance. Alternatively, call ExportImage to export the diagram to a bitmap file.
The PdfExporter class from MindFusion.Diagramming.Export namespace lets you export diagrams to PDF (Portable Document Format) format. Create an instance and call its Export method, passing a Diagram object and either file path or System.IO.Stream as parameters. By default, the diagram is exported as a single large PDF page. Set the PageSize property to split it into multiple pages instead. Properties such as EnableGrid and EnableBackground let you customize what elements to include in exported documents.