The correct way to do it in 1.8 is

|doc.openProtection(newStandardDecryptionMaterial(password)); to find out whether it is the user or the owner password, check the rights after decrypting. AccessPermission ap = doc.getCurrentAccessPermission(); if (ap.isOwnerPermission()) { // owner password } |



Am 08.02.2016 um 13:02 schrieb Pradipkumar Ahire:
Hi,

I am working on Encrypted PDFs.
While using *isEncrypted()* returns true when I used *isUserPassword(password) *it is giving the result *password incorrect *always even the its correct.

I tried using *StandardSecurityHandler*'s *isUserPassword() *method.
But I couldn't make it as it required more parameters than password whch are not available.

Attached is the file I have created. Can you please help me.

Thank you.

--
*
*
*
*
*
*
*Thanks and Regards*
*
*
**
*Pradipkumar Ahire
CashCare Technology
Contact : 9403807201
*
*Skype id : ahirepradipkumar*


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to