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

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

Property Value

Type: String
The password for opening an encrypted document.
The password be null or empty string. The default value is null. If the content is not encrypted, set this to null or empty string.
Load a content protected with a password.
LoadOptions loadOptions = new LoadOptions
    Password = "pwd123"
using (Watermarker watermarker = new Watermarker(@"D:\doc.vsdx", loadOptions))
    // ...
See Also