Hi,

> Balaji Venkatamohan <[email protected]> hat am 18. August 2014 um 23:33
> geschrieben:
>
>
> I want to know if PdfBox provides an option to decrypt a PDF document given
> its owner password and not its user password?
>
> I use :
>
> DecryptionMaterial decryptionMaterial = new
> StandardDecryptionMaterial("owner_password");
> document.openProtection(decryptionMaterial);
>
> I searched the net but could not find a matching issue. If it is a repeat
> question and if there already exists a solution to this, please provide me
> the link to the issue.
You should simply use something like the following:

document.decrypt("owner_password");

> Thanks,
> Balaji

BR
Andreas Lehmkühler

Reply via email to