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.Presentation.External.Pdf
Assembly: Spire.Presentation (in Spire.Presentation.dll) Version: 10.4.2.0 (10.4.2.6046)
Syntax
public void Encrypt(
	string permissionPassword,
	PdfPermissionsFlags permissions
)

Parameters

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