This example shows how to make advanced search for Digital signature in the document.
using(Signaturesignature=newSignature("signed.pdf")){DigitalSearchOptionsoptions=newDigitalSearchOptions(){// specify special search criteriaComments="Test comment",// certificate issues criteriaIssuerName="John",// digital certificate subjectSubjectName="Test",// specify date range period of signatureSignDateTimeFrom=DateTime.Now.AddMonths(-1),SignDateTimeTo=DateTime.Now,//};// search for signatures in documentList<DigitalSignature>signatures=signature.Search<DigitalSignature>(options);Console.WriteLine("\nSource document contains following signatures.");foreach(vardigitalSignatureinsignatures){Console.WriteLine("Digital signature found from {0} with validation flag {1}. Certificate SN {2}",digitalSignature.SignTime,digitalSignature.IsValid,digitalSignature.Certificate?.SerialNumber);}}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: