PdfViewerControl.SaveDocument(Stream) Method
In This Article
Saves the PDF document to a stream.
Namespace: DevExpress.Xpf.PdfViewer
Assembly: DevExpress.Xpf.PdfViewer.v24.2.dll
NuGet Package: DevExpress.Wpf.PdfViewer
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | The stream to which a document should be saved. |
#Remarks
If the PdfViewerControl.DetachStreamOnLoadComplete property is set to false (default mode), the PdfViewerControl’s document is reloaded from the saved stream. So, the input stream should not be closed until a document is opened.
If you want to close the stream when a document is opened, set the PdfViewerControl.DetachStreamOnLoadComplete property to true.
See Also