File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -982,16 +982,20 @@ interface ScanConfiguration{
982982< div id= " dwtcontrolContainer" style= " width:270px;height:350px" >< / div>
983983< input type= " button" value= " scan document" onclick= " ScanDocument();" / >
984984< script type= " text/javascript" >
985- function ScanDocument () {
986- var DWObject = Dynamsoft .DWT .GetWebTwain (' dwtcontrolContainer' );
987- if (DWObject) {
988- if (! DWObject .UseLocalService ) {
989- DWObject .Addon .Camera .scanDocument ({element: document .getElementById (" dwtcontrolContainer" )}).then (
990- function (){console .log (" OK" );},
991- function (error ){console .log (error .message );});
992- }
993- }
994- }
985+ function ScanDocument () {
986+ var DWObject = Dynamsoft .DWT .GetWebTwain (' dwtcontrolContainer' );
987+ if (DWObject) {
988+ if (! DWObject .UseLocalService ) {
989+ DWObject .Addon .Camera .scanDocument ({element: document .getElementById (" dwtcontrolContainer" )}).then (
990+ function (){
991+ console .log (" OK" );
992+ },
993+ function (error ){
994+ console .log (error .message );
995+ });
996+ }
997+ }
998+ }
995999 < / script>
9961000```
9971001
You can’t perform that action at this time.
0 commit comments