Click or drag to resize
Pdftools logo

Encryption Constructor


Namespace: PdfTools.Pdf
Assembly: PdfTools (in PdfTools.dll) Version: 1.7.0+cfcc11b476b3e1eb4320f0f37269191f64e36bd8
Syntax
C#
public 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