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: _articles/extended-usage/buffer-caching.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,7 @@ var storageItemUid = await DWTObject.createLocalStorage(folderSettings);
48
48
49
49
Please ensure to set a strong password to enhance data security, especially in multi-user login scenarios.
50
50
51
-
The local directory of the created storage folder is under
52
-
- Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN Service {versionnumber}\storage`(version 18.5.1 and earlier `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_{versionnumber}\storage`)
53
-
- macOS: `Go > Applications > Dynamsoft > Dynamic Web TWAIN Service {versionnumber} > storage`(version 18.5.1 and earlier `Go > Applications > Dynamsoft > DynamsoftServicex64_{versionnumber} > {installed version No.} > storage`)
54
-
- Linux: `/opt/dynamsoft/Dynamic Web TWAIN Service {versionnumber}/storage`(version 18.5.1 and earlier `/opt/dynamsoft/DynamsoftService/storage`)
51
+
The local directory of the created storage folder is under the service's [intallation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder).
Copy file name to clipboardExpand all lines: _articles/extended-usage/dynamsoft-service-configuration.md
+70-22Lines changed: 70 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,58 @@ description: Dynamic Web TWAIN SDK Documentation Dynamic Web TWAIN Service Page
10
10
11
11
# Configuring the Dynamic Web TWAIN Service
12
12
13
-
> This article is meant exclusively for the Desktop Service Edition of Dynamic Web TWAIN.
13
+
The Dynamic Web TWAIN Service is the core piece of Dynamic Web TWAIN. It handles the communication between hardware (scanner, webcam, etc.) and browser, manages the image buffer, and coordinates data between different modules.
14
14
15
-
The Dynamic Web TWAIN Service is the core piece of Dynamic Web TWAIN when running in Service mode. It handles the communication between hardware (scanner, webcam, etc.) and browser, manages the image buffer, and coordinates data between different modules.
15
+
16
+
## Installation of Dynamic Web TWAIN Service
17
+
18
+
On a desktop, when a new user accesses a web page using Dynamic Web TWAIN SDK for the first time, he will be prompted to install the Dynamic Web TWAIN Service. This is a built-in behavior of the library. The prompt will display the download link. Once the installer is downloaded, the installation process will take just a few seconds.
19
+
20
+
The prompt comes up when you try to [create a WebTwain instance](/_articles/extended-usage/advanced-initialization.md#instantiating-webtwain-without-onwebtwainready).
On **Windows and macOS**, double click the downloaded installer to install the service.
25
+
26
+
On **Linux**, instead of double clicking, the downloaded installer needs to be run using one of the following commands:
27
+
28
+
- Debian / Ubuntu
29
+
30
+
```bash
31
+
sudo dpkg -i DynamicWebTWAINServiceSetup.deb
32
+
```
33
+
34
+
- Fedora
35
+
36
+
```bash
37
+
sudo rpm -ivh DynamicWebTWAINServiceSetup.rpm
38
+
```
39
+
40
+
Once the installation is done, the users can click the orange sentence 'click here to verify completion' or refresh the page to start using Dynamic Web TWAIN.
The service is installed in the following folders on different platforms by default.
47
+
48
+
- Windows:
49
+
- version 19.0 and later: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN Service {versionnumber}`
50
+
- version 18.5.1 and earlier: `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_{versionnumber}`)
51
+
- macOS:
52
+
- version 19.2 and later: `/Users/{username}/Applications/Dynamsoft/Dynamic Web TWAIN Service {versionnumber}`
53
+
- version 19.0-19.1: `/Applications/Dynamsoft/Dynamic Web TWAIN Service {versionnumber}`
54
+
- version 18.5.1 and earlier: `/Applications/Dynamsoft/DynamsoftServicex64_{versionnumber}/{installed version No.}`)
55
+
- Linux:
56
+
- version 19.0 and later: `/opt/dynamsoft/Dynamic Web TWAIN Service {versionnumber}`
57
+
- version 18.5.1 and earlier: `/opt/dynamsoft/DynamsoftService`
16
58
17
59
## IP and ports
18
60
19
61
The Dynamic Web TWAIN Service uses `localhost` and `18622``18625` ports for HTTP connection and `18623``18626` ports for HTTPS connection.
20
-
These ports can be configured in the `DSConfiguration.ini` file located in:
21
-
- Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN Service {versionnumber}`(version 18.5.1 and earlier `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_{versionnumber}`)
22
-
- macOS: `Go > Applications > Dynamsoft > Dynamic Web TWAIN Service {versionnumber}`(version 18.5.1 and earlier `Go > Applications > Dynamsoft > DynamsoftServicex64_{versionnumber} > {installed version No.}`)
23
-
- Linux: `/opt/dynamsoft/Dynamic Web TWAIN Service {versionnumber}`(version 18.5.1 and earlier `/opt/dynamsoft/DynamsoftService`)
62
+
63
+
These ports can be configured in the `DSConfiguration.ini` file located in the service's installatin folder.
64
+
24
65
25
66
## Access-Control-Allow-Origin
26
67
@@ -58,33 +99,40 @@ When a request comes from a different origin, a CORS error message will be displ
On a desktop, when a new user accesses a web page using Dynamic Web TWAIN SDK for the first time, he will be prompted to install the Dynamic Web TWAIN Service. This is a built-in behavior of the library. The prompt will display the download link. Once the installer is downloaded, the installation process will take just a few seconds.
103
+
## Web Setup
64
104
65
-
The prompt comes up when you try to [create a WebTwain instance](/_articles/extended-usage/advanced-initialization.md#instantiating-webtwain-without-onwebtwainready) in Service mode.
105
+
The service provides a web page to know its status and make basic configurations. You can access it through <http://127.0.0.1:18625>.
Once the installation is done, the users can click the orange sentence 'click here to verify completion' or refresh the page to start using Dynamic Web TWAIN.
123
+
On the left of the page, you can check the service's status and update the [`LogLevel`](/_articles/info/api/WebTwain_Util.md#loglevel).
124
+
125
+
On the right of the page, you can configure the service through the local access tab and the external access tab.
126
+
127
+
In the local access tab, you can update the SSL certificate for domains bound to `127.0.0.1`.
128
+
129
+
In the external access tab, you can update the following settings:
130
+
131
+
1. Host: configure an external IP so that it can be accessed by other devices.
132
+
2. Firewall exception: add exception rules to the firewall to avoid the traffic being blocked by the firewall (only for Windows).
133
+
3. Domain: bind a domain to the IP of your service and configure its SSL certificate.
134
+
4. Bonjour service: enable Bonjour service to allow service discovery in local networks. It is needed for the [Remote Scan solution](https://www.dynamsoft.com/remote-scan/docs/introduction/).
// You need to set the service installer location here since the installer's size exceeds jsdelivr's limit. You'd better host the installers in your own environment.
// You need to set the service installer location here since the installer's size exceeds jsdelivr's limit. You'd better host the installers in your own environment.
Copy file name to clipboardExpand all lines: _articles/general-usage/image-export/local-export.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,4 +87,4 @@ The Base 64 string accessible through the `result` argument of the success callb
87
87
88
88
## Print
89
89
90
-
Finally, DWT can also print directly to a printer through the [`Print()`](/_articles/info/api/WebTwain_IO.md#print) API. This API brings all images from the image buffer into the browser's print dialog. Alternatively, while running in Windows Service Mode, the API can also take an argument to use the Windows OS print dialog instead.
90
+
Finally, DWT can also print directly to a printer through the [`Print()`](/_articles/info/api/WebTwain_IO.md#print) API. This API brings all images from the image buffer into the browser's print dialog. Alternatively, while running on Windows, the API can also take an argument to use the Windows OS print dialog instead.
Copy file name to clipboardExpand all lines: _articles/general-usage/resource-loading.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ The official SDK installers store the installers under the `/dist` directory, an
21
21
22
22
The official [DWT installer](https://www.dynamsoft.com/web-twain/downloads) installs the SDK with a 30-day free trial (license key included), and contains the resource scripts, along with SDK documentation, and samples. This method is useful for developers to quickly evaluate the SDK. The resource files may be obtained from the following locations after installation:
23
23
24
-
- On Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic WebTWAIN SDK {version number}/Resources`
24
+
- On Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic WebTWAIN SDK {version number}\Resources`
25
25
- On Linux: Where you extracted the SDK archive file to - `{extracted directory}/Dynamic Web TWAIN SDK {version number}/Resources`
26
26
- On MacOS: `/Applications/Dynamsoft/Dynamic Web TWAIN SDK {version number}/Resources`
27
27
@@ -95,6 +95,7 @@ Note that jsDelivr currently has problems delivering the Dynamic Web TWAIN Servi
95
95
<script>
96
96
Dynamsoft.DWT.ResourcesPath="https://cdn.jsdelivr.net/npm/dwt@latest/dist"; // Load supporting resources from here
97
97
Dynamsoft.DWT.ProductKey=""; // Add product key here
98
+
Dynamsoft.DWT.ServiceInstallerLocation='https://unpkg.com/dwt/dist/dist/'; // Set the service installers' location
0 commit comments