文档电子化是大势所趋,配合云存储可以给用户提供完美的解决方案。这篇文章分享下如何通过Web快速扫描文档,并上传到阿里云中。
Web文档扫描
Dynamic Web TWAIN是目前最出色的Web文档扫描SDK,支持Windows,Linux和macOS。
申请一个30天的试用License。
创建一个简单的Hello World:
Hello WorldDynamsoft.WebTwainEnv.ProductKey = '';
function scan() {
var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
if (DWObject) {
DWObject.SelectSource(function () {
var OnAcquireImageSuccess, OnAcquireImageFailure;
OnAcquireImageSuccess = OnAcquireImageFailure = function () {
DWObject.CloseSource();
};
DWObject.OpenSource();
DWObject.IfDisableSourceAfterAcquire = true;
DWObject.AcquireImage(OnAcquireImageSuccess, OnAcquireImageFailure);
}, function () {
console.log('SelectSource failed!');