PdfDocument.SetEncryption Method (Permission)

PDF File Writer

PdfDocumentSetEncryption Method (Permission)

Set encryption

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public void SetEncryption(
	Permission Permissions
)

Parameters

Permissions
Type: PdfFileWriterPermission
Permission flags.
Remarks
The PDF File Writer library will encrypt the PDF document using AES-128 encryption. User password set to default. Owner password is set to a random number. A PDF reader such as Acrobat will open the document with the default user password. Permissions flags are set as per argument.
See Also