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

Free Support Forum - aspose.com

Aspose.Pdf.Document.Decrypt() method decryting Open and Edit password


Attached file has different Open and Permission password and i am using below code to decrypt open password , but it is decrypting open as well as Permission password.

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(fileLocation, openPassword);



Open password for attached file : open

Please let me know why Permission password is getting decrypted.



Hi Anupam,

Thanks for your inquiry. While testing the scenario with latest version of Aspose.Pdf for .NET 9.7.0, we have managed to replicate the issue and logged a ticket PDFNEWNET-37668 in our issue tracking system for further investigation and resolution. We will notify you as soon as it is resolved.

We are sorry for the inconvenience caused.

Best Regards,