Back to Devexpress

PdfViewer.SaveDocument(Stream) Method

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-dot-savedocument-x28-system-dot-io-dot-stream-x29.md

latest1.8 KB
Original Source

PdfViewer.SaveDocument(Stream) Method

Saves the current PDF to the specified stream.

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.PdfViewer

Declaration

csharp
public bool SaveDocument(
    Stream stream
)
vb
Public Function SaveDocument(
    stream As Stream
) As Boolean

Parameters

NameTypeDescription
streamStream

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

|

Returns

TypeDescription
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

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace