Click or drag to resize

PdfSecurity Encrypt Method (String, PdfPermissionsFlags)

To Encrypt the PDF document with permission password and permissions. Note:The Permission password can't be empty string.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void Encrypt(
	string permissionPassword,
	PdfPermissionsFlags permissions
)

Parameters

permissionPassword
Type: System String
The permission password
permissions
Type: Spire.Doc PdfPermissionsFlags
A set of flags specifying which operations are permitted when the document is opened with user access
See Also