Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfViewerControl.SaveDocument(Stream) Method

Saves the PDF document to a stream.

Namespace: DevExpress.Xpf.PdfViewer

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

NuGet Package: DevExpress.Wpf.PdfViewer

#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