DocumentHandlerUpdatePassword Method (Stream, String, String)
Updates existing password for document of unknown format. Source document file format will be detected on the fly.

Namespace: GroupDocs.Merger.Handler
Assembly: GroupDocs.Merger (in GroupDocs.Merger.dll) Version: 19.7
Syntax
public DocumentResult UpdatePassword(
	Stream documentStream,
	string oldPassword,
	string newPassword
)

Parameters

documentStream
Type: System.IOStream
The document stream.
oldPassword
Type: SystemString
The current document password.
newPassword
Type: SystemString
The new document password.

Return Value

Type: DocumentResult
Document without updated password.
See Also