Hi,
When i try to verify digital signatures of PDF documents, some documents are marked as Not-Valid.
The code i am using:
string File1 = “Some Path”;
Aspose.Pdf.Document PDF_Doc = new Aspose.Pdf.Document(File1);
PdfFileSignature PFS1 = new PdfFileSignature(PDF_Doc);
if (PFS1.GetSignNames().Count > 0)
{
foreach (string Cert_00 in PFS1.GetSignNames())
{
if (PFS1.VerifySigned(Cert_00))
MessageBox.Show(“Valid”);
else
MessageBox.Show(“Not Valid !!!”);
}
}
image.png (24.4 KB)
SampleSignedPDFDocument.pdf (265.9 KB)
elliott