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;}
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 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also