This example shows how to search forΒ Text e-signature in the document.
using(Signaturesignature=newSignature("sample.pdf")){// setup search optionsTextSearchOptionssearchOptions=newTextSearchOptions(){// search only page with specified numberPageNumber=null,// specify as true to search all pages of a documentAllPages=true,// specify text to searchText="JS_",// specify text math typeMatchType=TextMatchType.Contains};// search documentList<TextSignature>signatures=signature.Search<TextSignature>(searchOptions);// output signaturesforeach(TextSignaturetextSignatureinsignatures){Console.Write($"Found Text signature: {textSignature.SignatureImplementation} "+$"with text {textSignature.Text}.");Console.WriteLine($"Location at {textSignature.Left}-{textSignature.Top}. "+$"Size is {textSignature.Width}x{textSignature.Height}.");}}
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: