This example shows how to verify Text signature in the document.ย Seeย VerificationResult
using(Signaturesignature=newSignature("signedSample.pdf")){TextVerifyOptionsoptions=newTextVerifyOptions(){// specify if all pages shoudl be verifiedAllPages=false,PagesSetup=newPagesSetup(){FirstPage=false,LastPage=true,OddPages=false,EvenPages=true},// specify text patternText="John",// specify verification text patternMatchType=TextMatchType.Contains,// specify types of QR code to verifySignatureImplementation=TextSignatureImplementation.Stamp,// specify if form fielsd should be verifiedFormTextFieldTitle="Sample",FormTextFieldType=FormTextFieldType.RichText};// verify document signaturesVerificationResultresult=signature.Verify(options);if(result.IsValid){Console.WriteLine("\nDocument was verified successfully!");}else{Console.WriteLine("\nDocument failed verification process.");}}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourย GitHub examples: