Free Support Forum - aspose.com

VerifySigned return unexpected result

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

@Aviadm

We were able to reproduce the issue while testing the scenario with Aspose.PDF for .NET 20.11. Therefore, an issue as PDFNET-49064 has been logged in our issue tracking system for the sake of investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.