Unable to unlock PDF File

I am trying to unlock the Attached PDF file using password “test”

Aspose.Pdf.Kit.PdfFileSecurity sec = new Aspose.Pdf.Kit.PdfFileSecurity(@"c:\test\test.pdf", @"c:\test\test2.pdf");

sec.DecryptFile("test");

But same file we can able to unlock through Adobe pdf writer. Please let me know how to fix this issue.

Hi Ganesan,

Please try to decrypt the PDF file with empty password as shown below:


sec.DecryptFile("");

I hope this helps. If you have any further questions, please do let us know.
Regards,