We're sorry AsposeApp doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.app

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)

This topic has been moved to the related forum: https://forum.aspose.com/t/pdf-digital-signature-and-encryption/232187