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

Free Support Forum - aspose.com

PdfFileSignature performance is very bad

Given is the following code where we want to check a signature in a pdf document.

            var pdfSign = new Aspose.Pdf.Facades.PdfFileSignature();
            pdfSign.BindPdf(@"C:\Users\foobar\Desktop\PDF_Personal_Qualified_Signed.pdf");
            if (pdfSign.ContainsSignature())
            {
                var signed = pdfSign.VerifySigned("Signature1");
                var valid = pdfSign.VerifySignature("Signature1");
            }

For a simple pdf document with one signature, this takes up to 60 seconds, and uses quite some cpu.

What is the reason for this long time it takes to validate a simple signature?

@manuelk

Could you please share your sample PDF document with us. We will test the scenario in our environment and address it accordingly.

You can download the pdf here:
This link is valid two days

@manuelk

Thanks for sharing sample document.

We have tested the scenario in our environment and were able to notice that API was taking long time to verify the signatures. We have logged an issue as PDFNET-46513 in our issue tracking system for further investigation. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-46513) have been fixed in Aspose.PDF for .NET 21.9.