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

PdfDocumentProcessor.SaveDocument(String, PdfSaveOptions, Boolean) Method

Saves the current PDF document to the specified file with encryption settings and document signature using the detach stream mode.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public void SaveDocument(
    string path,
    PdfSaveOptions options,
    bool detachStream
)

#Parameters

Name Type Description
path String

A String that is the file path to which a document is saved.

options PdfSaveOptions

A PdfSaveOptions object that contains the encryption settings and document signature that should be saved.

detachStream Boolean

true, the PDF Document API component unlocks a file while a document is saved; false, the PDF Document API component locks a file while a document is saved (default mode).

#Remarks

The PDF Document API component locks a file while a document is saved (the detachStream is set to false by default). To unlock this file, call the SaveDocument method with the detachStream parameter enabled.

Important

The PdfDocumentProcessor removes existing signatures from a document when it is saved. However, if you use PdfDocumentProcessor to apply a signature, it is retained.

See Also