Secure pdf files in java

Hi,

I am facing issue on production about secure document. Please find below questions-

Users are uploading Secured document and normal pdf documents by applications.

Normal pdf documents are working properly. Bur facing issues only for secured documents. I am not giving any password for opening secured PDF documents.

I checked secured pdf file properies -

On security section it is showing

a. Security method = Password Security

b. Document Open password = No

c. Permission password = Yes

we are using aspose jars and Itext jars for reading and uploading PDF document.

1. How can we check whether document is secured or not in java program

2. How we can convert Secured to Unsecured or Unlock the documents.

Could you please suggest to me and provide the code?

Regards,

RSY

Hi RSY,

Thanks for your inquiry.

  1. How can we check whether document is secured or not in java program

Please check following documentation link for checking whether document is secured or not.

  1. How we can convert Secured to Unsecured or Unlock the documents.

Please also check following documentation link to decrypt a PDF document. You need owner password to decrypt/unlock the documents.

Please feel free to contact us for any further assistance.

Best Regards,