Specifies a password for the document's access permissions. If the password is an empty string, accessing the document is not restricted. If a password is specified, the access permissions are given through the SaveSettings.DocumentAccessPermissions property.

Introduced: 11.0.

Syntax

public string MasterPassword { get; set; }
Public Property MasterPassword() As String

Limitations

PDF only. The encryption key length is 128 bits.