Hi,
I create new pdf document, and add digital signature.
Where document opened by Acrobat Reader It marked that: “Signed and all signatures are valid”
BUT - if I run the following code (refer to Aspose.PDF version 19.7) It return false
11.pdf (277.0 KB)
using (Document pdfDocument = new Document(@"c:\Temp\11.pdf"))
{
using (PdfFileSignature signature = new PdfFileSignature(pdfDocument))
{
IList<string> sigNames = signature.GetSignNames();
if (sigNames.Count > 0) // Any signatures?
{
var isVerifySigned = signature.VerifySigned(sigNames[0] as string); // why return false ?
var isVerifySignature = signature.VerifySignature(sigNames[0] as string); // why return false ?
}
}
}
Aviad