PDFView4NET WinForms Edition
UserPassword Property




O2S.Components.PDFView4NET Namespace > PDFSecurityManager Class : UserPassword Property
Gets or sets the user password for the pdf document this security manager object is attached to.
Syntax
'Declaration
 
Public Property UserPassword As Byte()
'Usage
 
Dim instance As PDFSecurityManager
Dim value() As Byte
 
instance.UserPassword = value
 
value = instance.UserPassword
public byte[] UserPassword {get; set;}
public: __property byte[]* get_UserPassword();
public: __property void set_UserPassword( 
   byte[][]* value
);
public:
property array<byte>^ UserPassword {
   array<byte>^ get();
   void set (    array<byte>^ value);
}

Property Value

A byte array specifying the user password for the pdf file.
Remarks
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