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

PdfViewer.SaveDocument(Stream) Method

Saves the current PDF to the specified stream.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v18.2.dll

Declaration

public bool SaveDocument(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A System.IO.Stream, specifying the document address.

Returns

Type Description
Boolean

true, if the document is saved successfully; false, if the document saving operation is cancelled by the user.

Remarks

If the PdfViewer.DetachStreamAfterLoadComplete property is set to false (default mode), 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 PdfViewer.DetachStreamAfterLoadComplete property to true.

See Also