Created
August 6, 2020 08:22
-
-
Save yushulx/5958071895182c74305c53d5d886ee36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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