PDF Digital signature and Encryption

Hi Team,

Is there any API support to identify the pdf documents are encrypted using the digital signature?

I’m using the below code.

Document pdfDocument = new Document(“pdf_digital_signature_timestamp.pdf”);
PdfFileInfo info =new PdfFileInfo(“pdf_digital_signature_timestamp.pdf”);
PdfFileSignature pdfSign = new PdfFileSignature(pdfDocument);
if(pdfSign.containsSignature() && info.isEncrypted())

pdfSign.containsSignature() is returns true as there is digital singnature in the document.

info.isEncrypted() is returns false even when the signature used for digital signature and encryption.

Please find the documents used.

pdf_digital_signature_timestamp.pdf (44.9 KB)
ValidationReport-GCC001-0001 (9).pdf (76.6 KB)

@DevarajKP

Can you please share how these two shared PDFs were encrypted and how this encryption can be verified in Adobe Reader? Please share some screenshots. We will further look into this matter and share our feedback with you.