PDF File Writer Class Library - Author Uzi Granot
PdfDocumentSetEncryption Method |
Set encryption
Namespace: PdfFileWriter
Assembly: PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)

C#
public void SetEncryption()

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 to allow all.
