Search
PdfExporter.Export Method (DiagramDocument, Stream)
See Also
 





Creates a PDF file representing the specified DiagramDocument.

Namespace: MindFusion.Diagramming.Export
Package: MindFusion.Diagramming.Export.Pdf

 Syntax

C#  Copy Code

public void Export (
    DiagramDocument diagramDoc,
    Stream stream
)

Visual Basic  Copy Code

Public Sub Export( _
    diagramDoc As DiagramDocument, _
    stream As Stream _
)

 Parameters

diagramDoc

A reference to the DiagramDocument that will be exported.

stream
Output System.IO.Stream to which to write the PDF data.

 Remarks

If PageSize is set to DiagramSize, the number of pages in the output PDF is equal to DiagramDocument.Pages.Count and each PDF page is as large as the respective DiagramPage.Bounds. Otherwise, all diagram pages are paginated using the specified PDF page size (A4 etc).

 See Also