Specifies the password for the user to open a password protected document. When the password is invalid or not specified, an exception is thrown.

Introduced: X14.

Syntax

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

Examples

This example shows a simple variant of how to use the 'TXTextControl.LoadSettings.UserPassword' property. Here, it is set to an imaginary password of "12345".

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
//...
ls.UserPassword = "12345";
//...
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
'...
ls.UserPassword = "12345"
'...

Limitations

PDF only. The encryption key length is 128 bits.