PDFView4NET WinForms Edition
UnicodeUserPassword Property




O2S.Components.PDFView4NET Namespace > PDFSecurityManager Class : UnicodeUserPassword Property
Gets or sets the user password for the pdf document this security manager object is attached to.
Syntax
'Declaration
 
Public Property UnicodeUserPassword As String
'Usage
 
Dim instance As PDFSecurityManager
Dim value As String
 
instance.UnicodeUserPassword = value
 
value = instance.UnicodeUserPassword
public string UnicodeUserPassword {get; set;}
public: __property string* get_UnicodeUserPassword();
public: __property void set_UnicodeUserPassword( 
   string* value
);
public:
property String^ UnicodeUserPassword {
   String^ get();
   void set (    String^ value);
}

Property Value

An unicode string specifying the user password for the pdf file.
Remarks

Note: This property must be used when using AES-256 encryption. If RC4 or AES-128 encryption is used, then the UserPassword property must be set.

A user password restricts access to a pdf document. When the pdf document is opened, the viewer requests the user to enter a password, if a user password has been set on the document. If the user password has not been set (this property is set to null), then the viewer opens the document without requesting a password. When the pdf document is open with a user password (or without one), the access to the document is restricted by the access rights associated with the document (allow print, etc).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PDFSecurityManager Class
PDFSecurityManager Members