Skip to content

Instantly share code, notes, and snippets.

@yushulx
Created August 6, 2020 08:22
Show Gist options
  • Save yushulx/5958071895182c74305c53d5d886ee36 to your computer and use it in GitHub Desktop.
Save yushulx/5958071895182c74305c53d5d886ee36 to your computer and use it in GitHub Desktop.
<my-app></my-app>
<script type="text/javascript">
var DWObject;
// Get a free trial license key from https://www.dynamsoft.com/CustomerPortal/Portal/Triallicense.aspx
// Dynamsoft.WebTwainEnv.ProductKey = 'LICENSE-KEY';
Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', onReady);
function onReady() {
Dynamsoft.WebTwainEnv.CreateDWTObject(document.createElement('div'), function (obj) {
DWObject = obj;
}, function (errorString) {
console.log(errorString)
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment