This example shows how to verify Barcode signature in the document.
using(Signaturesignature=newSignature("sample.pdf")){BarcodeVerifyOptionsoptions=newBarcodeVerifyOptions(){AllPages=true,// this value is set by defaultText="John",MatchType=TextMatchType.Contains// set encode type// if this value is not set any barcode type will be validEncodeType=BarcodeTypes.Code128};// verify document signaturesVerificationResultresult=signature.Verify(options);if(result.IsValid){Console.WriteLine("\nDocument was verified successfully!");}else{Console.WriteLine("\nDocument failed verification process.");}}
Advanced Usage Topics
To learn more about document eSign features, please refer to theΒ advanced usage section.
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: