LoadOptionsPassword Property |
Gets or sets the password for opening an encrypted document.
Namespace: GroupDocs.Watermark.OptionsAssembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntaxpublic string Password { get; set; }
Public Property Password As String
Get
Set
public:
property String^ Password {
String^ get ();
void set (String^ value);
}
member Password : string with get, set
Property Value
Type:
StringThe password for opening an encrypted document.
Remarks
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.
Examples
Load a content protected with a password.
LoadOptions loadOptions = new LoadOptions
{
Password = "pwd123"
};
using (Watermarker watermarker = new Watermarker(@"D:\doc.vsdx", loadOptions))
{
}
See Also