Hello,
Hi Gupreet,
Hi Gurpeet,
Thanks for your patience. I also observed that the decryptFile()
method doesn’t throw any exception or return a boolean result in case of a wrong password, so I have logged an enhancement request, PDFKITJAVA-33268, in our issue tracking system. As a workaround, you can use the isOwnerPassword()
or isUserPassword()
methods of the PdfViewer class for validating the password and proceed accordingly.
Secondly, regarding digital certificate decryption, unfortunately, Aspose.Pdf doesn’t support this feature at the moment. However, I have also logged a new feature request, PDFKITJAVA-33269, in our issue tracking system. You will be notified via this thread as soon as it becomes available.
Please feel free to contact us for any further assistance.
Best Regard,