[]
Encapsulates the information necessary to provide PDF document security and encryption.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PdfSecurity
If a user password is supplied the viewer application should prompt for a password. If a user password is not supplied no password will be requested to open the document. By correctly supplying either the user password, or the owner password, the user will be able to open the document, decrypt it and display it on the screen. Whether additional operations are allowed on a decrypted document depends on which password (if any) was supplied when the document was opened and on any access restrictions specified using this class's Permissions property.
Name | Description |
---|---|
Encrypt | Determines whether the document is encrypted or not. |
OwnerPassword | The owner password that can be entered in the reader that permits full access to the document regardless of the specified user permissions. |
Permissions | Specifies the user permissions for the document. The PdfPermissions values can be combined using a bitwise OR combination. |
Use128Bit | True to use 128 bit encryption with full permissions capability. |
UserPassword | The user password that can be entered in the reader. If this value is left empty the user will not be prompted for a password, however the user will be restricted by the specified permissions. |