From 1689a4f8f0bce51501f0b9995e9d9feccda8c605 Mon Sep 17 00:00:00 2001 From: DMGithubPublisher Date: Sat, 5 Oct 2024 07:18:31 +0800 Subject: [PATCH] update to internal commit 79cb3e34 --- articles/general-usage/resource-loading.md | 20 ++++++++++---------- articles/hello-world/scanning.md | 4 ++-- getstarted/angular.md | 2 ++ getstarted/react.md | 2 ++ getstarted/vue.md | 4 ++++ getstarted/vue3.md | 2 ++ 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/articles/general-usage/resource-loading.md b/articles/general-usage/resource-loading.md index 9571e3c1..e57b6ee1 100644 --- a/articles/general-usage/resource-loading.md +++ b/articles/general-usage/resource-loading.md @@ -46,24 +46,24 @@ Though these core resource files do not contain add-ons, we may load add-on reso ## Loading from CDN -> 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. - 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). +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. + Simply create a `script` element like so: -### Loading from [UNPKG](https://unpkg.com/dwt@latest/dist/dynamsoft.webtwain.min.js) +### Loading from [UNPKG](https://unpkg.com/dwt@18.5.0/dist/dynamsoft.webtwain.min.js) ```html - + @@ -75,20 +75,20 @@ APIs used: - [`Dynamsoft.DWT.ResourcesPath`]({{site.api}}Dynamsoft_WebTwainEnv.html#resourcespath) - [`Dynamsoft.DWT.ProductKey`]({{site.api}}Dynamsoft_WebTwainEnv.html#productkey) -### Loading from [jsDelivr](https://cdn.jsdelivr.net/npm/dwt@latest/dist/dynamsoft.webtwain.min.js) +### Loading from [jsDelivr](https://cdn.jsdelivr.net/npm/dwt@18.5.0/dist/dynamsoft.webtwain.min.js) -> 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). +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). ```html - + @@ -106,7 +106,7 @@ APIs used: ## Loading from Package Managers -> 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). +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). The DWT package is hosted on both `npm` and `yarn` (both packages are identical), and the installation commands are as follows: diff --git a/articles/hello-world/scanning.md b/articles/hello-world/scanning.md index 208521e8..11bcf9cb 100644 --- a/articles/hello-world/scanning.md +++ b/articles/hello-world/scanning.md @@ -23,8 +23,8 @@ To start off, create the Hello World web application and load DWT into the envir 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: - Windows: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number}\` -- Linux: Within the decompressed file `Dynamic Web TWAIN SDK {Version Number}\` -- MacOS: `Applications\Dynamic Web TWAIN SDK {Version Number}\` +- Linux: Within the decompressed file `Dynamic Web TWAIN SDK {Version Number}/` +- MacOS: `Applications/Dynamsoft/Dynamic Web TWAIN SDK {Version Number}/` ### Include the DWT Scripts diff --git a/getstarted/angular.md b/getstarted/angular.md index fba16297..3d9ed09f 100644 --- a/getstarted/angular.md +++ b/getstarted/angular.md @@ -46,6 +46,8 @@ Open `angular.json` and add the following lines to `"build"/"options"/"assets"` } ``` +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. + ## Start to implement ### Generate a component diff --git a/getstarted/react.md b/getstarted/react.md index 7576e7e2..98c33e7d 100644 --- a/getstarted/react.md +++ b/getstarted/react.md @@ -51,6 +51,8 @@ Open `package.json` and change `scripts` like this: > Note: The change ensures the static files required to run `DWT` are copied over to the built project. +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. + ## Implementation ### Generate a Component diff --git a/getstarted/vue.md b/getstarted/vue.md index 1d8c1c27..f5c4b88b 100644 --- a/getstarted/vue.md +++ b/getstarted/vue.md @@ -57,6 +57,8 @@ Open `package.json` and change `scripts` as seen below: > The change ensures the static files required to run `DWT` are copied over to the resulting built project. +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. + ## Start to implement ### Edit the default component @@ -252,6 +254,8 @@ Open `package.json` and change `scripts` as seen below: > The change ensures the static files required to run `DWT` are copied over to the resulting built project. +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. + ## Start to implement ### Edit the default component diff --git a/getstarted/vue3.md b/getstarted/vue3.md index 7b6f4e1e..0daa82a5 100644 --- a/getstarted/vue3.md +++ b/getstarted/vue3.md @@ -58,6 +58,8 @@ Open `package.json` and change `scripts` as seen below: > The change ensures the static files required to run `DWT` are copied over to the resulting built project. +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. + ## Start to implement ### Edit the default component