Manage PDF passwords and permissions in C++

Use PdfFileSecurity to encrypt and decrypt PDF files, change passwords, and apply document privileges with direct or Try methods.

The passwords in these examples are fixture values. Substitute the passwords for your own input and output documents. Permission examples configure DocumentPrivilege; Try methods save only when the operation succeeds.

Common PdfFileSecurity tasks