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(String) Method

Saves the PDF document to a file.

Namespace: DevExpress.Xpf.PdfViewer

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

NuGet Package: DevExpress.Wpf.PdfViewer

#Declaration

public void SaveDocument(
    string path
)

#Parameters

Name Type Description
path String

A string value specifying the path to a file into which to save the document.

#Remarks

If the PdfViewerControl.DetachStreamOnLoadComplete property is set to false (default mode) the PDF Viewer locks a file to which a document is saved until the document is opened in the PDF Viewer. If you want the PDF Viewer does not lock the file, set the PdfViewerControl.DetachStreamOnLoadComplete property totrue.

See Also