PdfSecurity Encrypt Method | 
| Name | Description | |
|---|---|---|
| 
 | 
Encrypt(String) | 
 
To Encrypt the PDF document with open password.
Note:If set empty string value to open password, it indicates that the PDF document can be operated without providing corresponding password.
Note: the document owner password should not be exist.
 
 | 
| 
 | 
Encrypt(String, PdfPermissionsFlags) | 
 
To Encrypt the PDF document with permission password and permissions.
Note:The Permission password can't be empty string.
 
 | 
| 
 | 
Encrypt(String, String, PdfPermissionsFlags, PdfEncryptionKeySize) | 
 
To Encrypt the PDF document and set the encryption key size and permissions.
Note:If set empty string value to open password or permission password, it indicates that the PDF document can be operated without providing corresponding password.
 
 |