AWScanner is not working: I am using AppWorks 16.2.1 and when I am trying to invoke scan document function it's not working.
Does anyone tried this so far? Appreciate your help. I am using the example code from https://github.com/opentext/appworks-js#awscanner
var scan = function (returnType) {
var scanner = new Appworks.Scanner();
scanner.scanDocument(
returnType, // Set the return type: 0 = filepath, 1 = base64, 2 = doc provider (will return a filepath as well)
function(successMessage) {
// Called when the scan completes and returns successfully
// Success message will be a string
alert(successMessage);
}, function(errorMessage) {
// Called when the scan fails or a cancelled
// error message will be string
alert(errorMessage);
}
);
};
When I am trying to use the scanner with the following button in my index.html It's not invoking the scanner and even not displaying any error.
<button onclick="scan(0)"> Scan </button>