Skip to main content
A newer version of this page is available. .

PdfViewerControl.SaveDocument(Stream) Method

Saves the PDF document to a stream.

Namespace: DevExpress.Xpf.PdfViewer

Assembly: DevExpress.Xpf.PdfViewer.v19.2.dll

Declaration

public void SaveDocument(
    Stream stream
)

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