This example shows how to verify Barcode signature in the document.
// The path to the documents directory.constfilePath=Constants.SAMPLE_SIGNED_MULTI;// Initialize Signature instanceconstsignature=newsignatureLib.Signature(filePath);// Initialize BarcodeVerifyOptionsconstoptions=newsignatureLib.BarcodeVerifyOptions();options.setAllPages(true);// This value is set by defaultoptions.setText('John');options.setMatchType(signatureLib.TextMatchType.Contains);// Verify document signaturesconstresult=signature.verify(options);if(result.isValid()){console.log('\nDocumentwasverifiedsuccessfully!');}else{console.log('\nDocumentfailedtheverificationprocess.');}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: