When you search for electronic signatures of QR-Code type inside document withΒ GroupDocs.Signature it’s only needed toΒ QrCodeSearchOptionsΒ objectΒ to Search method.
Here are the quick guide of how to search for QR-code signatures:
Create new instance ofΒ SignatureΒ class and pass source document path as a constructor parameter;
Instantiate theΒ QrCodeSearchOptionsΒ object according to your requirements and specify search options;
The code snippet below demonstrates search for QR-code signature in the document.
using(Signaturesignature=newSignature("sample.pdf")){// search for signatures in documentList<QrCodeSignature>signatures=signature.Search<QrCodeSignature>(SignatureType.QrCode);Console.WriteLine("\nSource document contains following signatures.");foreach(varQrCodeSignatureinsignatures){Console.WriteLine("QRCode signature found at page {0} with type {1} and text {2}",QrCodeSignature.PageNumber,QrCodeSignature.EncodeType,QrCodeSignature.Text);}}
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: