We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem with Decrypt pdf with password

hello Aspose team


I have a problem when I try to remove the password of a pdf document I already try with this code

PdfFileSecurity file = new PdfFileSecurity(filePath, DestinationPath);
file.DecryptFile(password);

and like this

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(filePath, password);
doc.Decrypt();
doc.Save(destinationPath);


but in both scenarios i have the same Exception from the method DecryptFile

Permissions check failed (invalid Perms value).

can you help me with this, thanks

Hi Javier,


Thanks for your inquiry. Please note there are two types of passwords, user password and owner password. To Decrypt PDF document you need to use owner password. However if the issue persist then please share your sample PDF document and password here, we will look into it and will guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,