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/general-usage/resource-loading.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,24 +46,24 @@ Though these core resource files do not contain add-ons, we may load add-on reso
46
46
47
47
## Loading from CDN
48
48
49
-
> Note: The resources obtained from the CDNs contain the property `Dynamsoft.DWT.AutoLoad = false`, whereas the same property in the resources obtained from the official SDK has the value `true`. This property controls initialization behavior; read our [initialization guide]({{site.extended-usage}}advanced-initialization.html) to learn more.
50
-
51
49
The most straight-forward method of loading resources is to fetch them from CDNs. (Both CDNs provide identical files) DWT resource files are hosted on [jsDelivr](https://jsdelivr.com/) and [UNPKG](https://unpkg.com/). Unlike our official SDK package, the CDNs require the user to supply a license key. See our [licensing page]({{site.general-usage}}license.html) for more details, and request a trial license [here](https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt).
52
50
51
+
The resources obtained from the package managers differ slightly from the ones found in the official SDK package, in that it has the property `Dynamsoft.DWT.AutoLoad = false`, whereas it is `true` in the official SDK package. This property controls initialization behavior; read our [initialization guide]({{site.extended-usage}}advanced-initialization.html) to learn more.
52
+
53
53
Simply create a `script` element like so:
54
54
55
-
### Loading from [UNPKG](https://unpkg.com/dwt@latest/dist/dynamsoft.webtwain.min.js)
55
+
### Loading from [UNPKG](https://unpkg.com/dwt@18.5.0/dist/dynamsoft.webtwain.min.js)
### Loading from [jsDelivr](https://cdn.jsdelivr.net/npm/dwt@latest/dist/dynamsoft.webtwain.min.js)
78
+
### Loading from [jsDelivr](https://cdn.jsdelivr.net/npm/dwt@18.5.0/dist/dynamsoft.webtwain.min.js)
79
79
80
-
> Note: jsDelivr currently has problems delivering the Dynamsoft Service installer (`https://cdn.jsdelivr.net/npm/dwt@latest/dist/dist/DynamsoftServiceSetup.msi`) due to [size restrictions](https://www.jsdelivr.com/documentation#id-configuring-a-default-file-in-packagejson); please consider hosting this particular resource file elsewhere. UKPKG is currently unaffected. For information about the Dynamsoft Service, learn more [here]({{site.extended-usage}}dynamsoft-service-configuration.html).
80
+
Note that jsDelivr currently has problems delivering the Dynamsoft Service installer (`https://cdn.jsdelivr.net/npm/dwt@18.5.0/dist/dist/`) due to [size restrictions](https://www.jsdelivr.com/documentation#id-configuring-a-default-file-in-packagejson); please consider hosting this particular resource file elsewhere. UKPKG is currently unaffected. For information about the Dynamsoft Service, learn more [here]({{site.extended-usage}}dynamsoft-service-configuration.html).
Dynamsoft.DWT.ResourcesPath="https://cdn.jsdelivr.net/npm/dwt@latest/dist"; // Load supporting resources from here
91
+
Dynamsoft.DWT.ResourcesPath="https://cdn.jsdelivr.net/npm/dwt@18.5.0/dist"; // Load supporting resources from here
92
92
Dynamsoft.DWT.ProductKey=""; // Add product key here
93
93
</script>
94
94
</body>
@@ -106,7 +106,7 @@ APIs used:
106
106
107
107
## Loading from Package Managers
108
108
109
-
> Note: The resources obtained from the package managers contain the property `Dynamsoft.DWT.AutoLoad = false`, whereas the same property in the resources obtained from the official SDK has the value `true`. This property controls initialization behavior; read our [initialization guide]({{site.extended-usage}}advanced-initialization.html) to learn more. Just like the CDNs, the package managers require the users to supply a license key. See our [licensing page]({{site.general-usage}}license.html) for more details, and request a trial license [here](https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt).
109
+
The resources obtained from the package managers differ slightly from the ones found in the official SDK package, in that it has the property `Dynamsoft.DWT.AutoLoad = false`, whereas it is `true` in the official SDK package. This property controls initialization behavior; read our [initialization guide]({{site.extended-usage}}advanced-initialization.html) to learn more. Just like the CDNs, the package managers require the users to supply a license key. See our [licensing page]({{site.general-usage}}license.html) for more details, and request a trial license [here](https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt).
110
110
111
111
The DWT package is hosted on both `npm` and `yarn` (both packages are identical), and the installation commands are as follows:
Copy file name to clipboardExpand all lines: articles/hello-world/scanning.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,8 @@ To start off, create the Hello World web application and load DWT into the envir
23
23
Create a `HelloWorld.html` file anywhere and copy the `Resources` folder to the same location. You can typically find the `Resources` folder inside the following locations depending on your platform:
24
24
25
25
- Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number}\`
26
-
- Linux: Within the decompressed file `Dynamic Web TWAIN SDK {Version Number}\`
27
-
- MacOS: `Applications\Dynamic Web TWAIN SDK {Version Number}\`
26
+
- Linux: Within the decompressed file `Dynamic Web TWAIN SDK {Version Number}/`
27
+
- MacOS: `Applications/Dynamsoft/Dynamic Web TWAIN SDK {Version Number}/`
Copy file name to clipboardExpand all lines: getstarted/angular.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ Open `angular.json` and add the following lines to `"build"/"options"/"assets"`
46
46
}
47
47
```
48
48
49
+
We can get these resource files in a few different ways. See our [resource loading guide]({{site.general-usage}}resource-loading.html) to see how to load resource files from our official SDK, CDNs, or package managers.
Copy file name to clipboardExpand all lines: getstarted/react.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ Open `package.json` and change `scripts` like this:
51
51
52
52
> Note: The change ensures the static files required to run `DWT` are copied over to the built project.
53
53
54
+
We can get these resource files in a few different ways. See our [resource loading guide]({{site.general-usage}}resource-loading.html) to see how to load resource files from our official SDK, CDNs, or package managers.
Copy file name to clipboardExpand all lines: getstarted/vue.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ Open `package.json` and change `scripts` as seen below:
57
57
58
58
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
59
59
60
+
We can get these resource files in a few different ways. See our [resource loading guide]({{site.general-usage}}resource-loading.html) to see how to load resource files from our official SDK, CDNs, or package managers.
61
+
60
62
## Start to implement
61
63
62
64
### Edit the default component
@@ -252,6 +254,8 @@ Open `package.json` and change `scripts` as seen below:
252
254
253
255
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
254
256
257
+
We can get these resource files in a few different ways. See our [resource loading guide]({{site.general-usage}}resource-loading.html) to see how to load resource files from our official SDK, CDNs, or package managers.
Copy file name to clipboardExpand all lines: getstarted/vue3.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ Open `package.json` and change `scripts` as seen below:
58
58
59
59
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
60
60
61
+
We can get these resource files in a few different ways. See our [resource loading guide]({{site.general-usage}}resource-loading.html) to see how to load resource files from our official SDK, CDNs, or package managers.
0 commit comments