Skip to content

Commit ea9f283

Browse files
Merge pull request #853 from dynamsoft-docs/preview
2 parents 14f3179 + 1689a4f commit ea9f283

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

articles/general-usage/resource-loading.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ Though these core resource files do not contain add-ons, we may load add-on reso
4646

4747
## Loading from CDN
4848

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-
5149
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).
5250

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+
5353
Simply create a `script` element like so:
5454

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)
5656

5757
```html
5858
<html>
5959
<head>
6060
<!-- Load resources from UNPKG CDN -->
61-
<script src="https://unpkg.com/dwt@latest/dist/dynamsoft.webtwain.min.js"></script>
61+
<script src="https://unpkg.com/dwt@18.5.0/dist/dynamsoft.webtwain.min.js"></script>
6262
</head>
6363

6464
<body>
6565
<script>
66-
Dynamsoft.DWT.ResourcesPath = "https://unpkg.com/dwt@latest/dist"; // Load supporting resources from here
66+
Dynamsoft.DWT.ResourcesPath = "https://unpkg.com/dwt@18.5.0/dist"; // Load supporting resources from here
6767
Dynamsoft.DWT.ProductKey = ""; // Add product key here
6868
</script>
6969
</body>
@@ -75,20 +75,20 @@ APIs used:
7575
- [`Dynamsoft.DWT.ResourcesPath`]({{site.api}}Dynamsoft_WebTwainEnv.html#resourcespath)
7676
- [`Dynamsoft.DWT.ProductKey`]({{site.api}}Dynamsoft_WebTwainEnv.html#productkey)
7777

78-
### 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)
7979

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).
8181

8282
```html
8383
<html>
8484
<head>
8585
<!-- Load resources from jsDelivr CDN -->
86-
<script src="https://cdn.jsdelivr.net/npm/dwt@latest/dist/dynamsoft.webtwain.min.js"></script>
86+
<script src="https://cdn.jsdelivr.net/npm/dwt@18.5.0/dist/dynamsoft.webtwain.min.js"></script>
8787
</head>
8888

8989
<body>
9090
<script>
91-
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
9292
Dynamsoft.DWT.ProductKey = ""; // Add product key here
9393
</script>
9494
</body>
@@ -106,7 +106,7 @@ APIs used:
106106

107107
## Loading from Package Managers
108108

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).
110110

111111
The DWT package is hosted on both `npm` and `yarn` (both packages are identical), and the installation commands are as follows:
112112

articles/hello-world/scanning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ To start off, create the Hello World web application and load DWT into the envir
2323
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:
2424

2525
- 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}/`
2828

2929
### Include the DWT Scripts
3030

getstarted/angular.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Open `angular.json` and add the following lines to `"build"/"options"/"assets"`
4646
}
4747
```
4848

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.
50+
4951
## Start to implement
5052

5153
### Generate a component

getstarted/react.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Open `package.json` and change `scripts` like this:
5151

5252
> Note: The change ensures the static files required to run `DWT` are copied over to the built project.
5353
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.
55+
5456
## Implementation
5557

5658
### Generate a Component

getstarted/vue.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Open `package.json` and change `scripts` as seen below:
5757

5858
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
5959
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+
6062
## Start to implement
6163

6264
### Edit the default component
@@ -252,6 +254,8 @@ Open `package.json` and change `scripts` as seen below:
252254

253255
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
254256
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.
258+
255259
## Start to implement
256260

257261
### Edit the default component

getstarted/vue3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ Open `package.json` and change `scripts` as seen below:
5858

5959
> The change ensures the static files required to run `DWT` are copied over to the resulting built project.
6060
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.
62+
6163
## Start to implement
6264

6365
### Edit the default component

0 commit comments

Comments
 (0)