DiagramControl.ExportToPdf(Stream, Nullable<Rect>, PdfExportOptions) Method
Exports the diagram to a single-page PDF document which is sent to the specified stream.
Namespace: DevExpress.Xpf.Diagram
Assembly: DevExpress.Xpf.Diagram.v24.2.dll
NuGet Package: DevExpress.Wpf.Diagram
#Declaration
public void ExportToPdf(
Stream stream,
Rect? exportBounds = null,
PdfExportOptions options = null
)
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A System. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
export |
Nullable<Rect> | null | A System. |
options | Pdf |
null | The options that define how a document is exported. |
#Remarks
If the options parameter is not specified, the DiagramControl.PdfExportOptions property value is used.
If the exportBounds parameter is not specified, the DiagramControl.PrintExportMode and DiagramControl.ExportMargin property values are used.
Use the PrintToPdf method to export the diagram to a multi-page PDF document.