Change Passwords and Decrypt PDF Document
Change Password of a PDF document
In order to change the password of a PDF file, you must know the owner password of that document. You can load password protected PDF document with Aspose.PDF for C++ by specifying its owner password and use ChangePasswords method to change the password. Please check following code snippet which changes the password of an existing PDF file.
Decrypt a PDF Document
In order to decrypt a PDF file, you need to create Document object and then call the Decrypt method. You also need to pass the owner password to Decrypt method. The following code snippet shows you how to decrypt PDF file.