This example shows how to verify QR-code signature in the document.
using(Signaturesignature=newSignature("sample.pdf")){QrCodeVerifyOptionsoptions=newQrCodeVerifyOptions(){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=QrCodeTypes.QR};// 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: