GroupDocs.Signature supports verification of documents for different signature types. This approach requires to add all required verification options to list.
Here are the steps to verify document for multiple signatures with GroupDocs.Signature:
Create new instance ofΒ SignatureΒ class and pass source document path or stream as a constructor parameter.
This example shows how to search for different signature types in the document.
using(Signaturesignature=newSignature("sampleSigned.pdf")){TextVerifyOptionstextVerifyOptions=newTextVerifyOptions(){AllPages=true,// this value is set by defaultSignatureImplementation=TextSignatureImplementation.Stamp,Text="John",MatchType=TextMatchType.Contains};BarcodeVerifyOptionsbarcVerifyOptions=newBarcodeVerifyOptions(){AllPages=true,// this value is set by defaultText="John",MatchType=TextMatchType.Contains};QrCodeVerifyOptionsqrcdVerifyOptions=newQrCodeVerifyOptions(){AllPages=true,// this value is set by defaultText="John",MatchType=TextMatchType.Contains};DigitalVerifyOptionsdigtVerifyOptions=newDigitalVerifyOptions("certificate.pdf"){Comments="Test comment"};// verify document signaturesList<VerifyOptions>listOptions=newList<VerifyOptions>();listOptions.Add(textVerifyOptions);listOptions.Add(barcVerifyOptions);listOptions.Add(qrcdVerifyOptions);listOptions.Add(digtVerifyOptions);VerificationResultresult=signature.Verify(listOptions);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: