You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: indepth/features/input.md
+6-18Lines changed: 6 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,26 +26,14 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB
26
26
Many modern scanners and multi-functional printers (MFPs) support the eSCL protocol. The protocol is a vendor-neutral network protocol that allows driverless scanning via ethernet, wireless and USB-connected devices. eSCL-compatible scanners advertise themselves via mDNS so that we can find them easily. mDNS is a zero-configuration service. It is implemented by Apple Bonjour and the open-source Avahi software packages.
27
27
> See [this blog post](https://www.dynamsoft.com/blog/announcement/dynamic-web-twain-escl-scanner/) for more information about eSCL.
28
28
29
-
#### Scan from an eSCL Scanner to PC
30
-
> The Dynamsoft Service must be installed on the client PC
29
+
- To scan from an eSCL Scanner to PC, the Dynamsoft Service must be installed on the client PC
30
+
- To scan from an eSCL Scanner to Android, you must install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan).
31
31
32
+
The following code shows how one way to acquire the image via the eSCL protocol.
32
33
```javascript
33
-
//Get a list of eSCL scanners:
34
-
let eSCLDevices =awaitDWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER);
35
-
36
-
//Scan documents from the first eSCL scanner:
37
-
let deviceConfiguration = {Resolution:100,IfShowUI:false}; // scanning configuration. Check out the docs to learn more: https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimage
> Install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan).
43
-
44
-
```javascript
45
-
let devices =awaitDWObject.GetDevicesAsync(); // get the devices list
46
-
awaitDWObject.SelectDeviceAsync(devices[0]); // select the first device
47
-
let deviceConfiguration = {Resolution:100,IfShowUI:false}; // scanning configuration. Check out the docs to learn more: https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimage
48
-
DWObject.AcquireImageAsync(deviceConfiguration); // scan documents with the selected device
34
+
let esclDeviceList=awaitDWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER)
0 commit comments