LoadOptionsPassword Property
Gets or sets the password for opening an encrypted document.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 19.5
Syntax
public string Password { get; set; }

Property Value

Type: String
Can be null or empty string. The default value is null. If the document is not encrypted, set this to null or empty string.
Examples
Load a document protected with a password.
C#
LoadOptions loadOptions = new LoadOptions
{
    Password = "pwd123"
};
using (Document doc = Document.Load(@"D:\doc.doc", loadOptions))
{
    // ...
}
See Also