 | Encryption Constructor |
Namespace: PdfTools.PdfAssembly: PdfTools (in PdfTools.dll) Version: 1.9.1+b77910aba6fa7f07fcfd9b66a6f8c5a618f049a3
Syntaxpublic Encryption(
string userPassword,
string ownerPassword,
Permission permissions
)
Parameters
- userPassword String
-
Set the user password of the output document (see UserPassword).
If or empty, no user password is set.
- ownerPassword String
-
Set the owner password and permissions of the output document (see OwnerPassword).
If or empty, no owner password is set.
- permissions Permission
-
The permissions to be set on the PDF document.
If no owner password is set, the permissions must not be restricted, i.e. the permissions must be All.
See Also