Skip to content

Commit e16a3ef

Browse files
authored
Merge pull request #896 from dynamsoft-docs/preview
update to internal commit 8c7852da
2 parents b66b030 + 2c5c90a commit e16a3ef

File tree

290 files changed

+2316
-2752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+2316
-2752
lines changed

about/getsupport.md renamed to _articles/about/getsupport.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Dynamic Web TWAIN SDK Support
55
keywords: Dynamic Web TWAIN, Documentation, Support
66
breadcrumbText: Support
77
description: Dynamic Web TWAIN SDK Documentation Support Page
8-
permalink: /about/getsupport.html
98
---
109

1110

about/index.md renamed to _articles/about/index.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ title: Document Scanning SDK | Dynamic Web TWAIN Documentation
66
keywords: Dynamic Web TWAIN, TWAIN, About, Documentation
77
breadcrumbText: About Dynamic Web TWAIN
88
description: Dynamic Web TWAIN SDK Documentation. This will help you integrate document scanning into your app, no matter whether you are building a workflow from scratch or optimizing an existing workflow.
9-
permalink: /about/
109
ignore: true
1110
---
1211

@@ -22,18 +21,18 @@ Being in the market for over 17 years, it has won the trust of many fortune 500
2221

2322
<a class="btn d-btn bgOrange hide-sm hide-xs" href="https://www.dynamsoft.com/web-twain/downloads">Download 30-Day Free Trial</a>
2423

25-
For more info, please check out <a href="{{site.info}}schedule/stable.html" target="_blank">DWT release history</a>.
24+
For more info, please check out [DWT release history](/_articles/info/schedule/Stable.md){:target="_blank"}.
2625

2726
## Document Capture and Process
2827

2928
DWT makes the following tasks easy
3029

31-
* [Scanning documents from scanners]({{site.hello-world}}scanning.html)
32-
* [Loading or downloading existing documents]({{site.extended-usage}}file-import.html)
33-
* [Editing images]({{site.indepth}}features/edit.html)
34-
* [Saving documents locally]({{site.indepth}}features/output.html#save)
35-
* [Uploading documents to the server]({{site.indepth}}features/output.html#upload)
36-
* [Reading barcodes]({{site.indepth}}features/barcode.html)
30+
* [Scanning documents from scanners](/_articles/hello-world/scanning.md)
31+
* [Loading or downloading existing documents](/_articles/extended-usage/file-import.md)
32+
* [Editing images](/_articles/general-usage/image-processing/index.md)
33+
* [Saving documents locally](/_articles/general-usage/image-export/index.md#save)
34+
* [Uploading documents to the server](/_articles/general-usage/image-export/index.md#upload)
35+
* [Reading barcodes](/_articles/extended-usage/barcode-processing.md)
3736

3837
## Highlights
3938

about/resources.md renamed to _articles/about/resources.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Dynamic Web TWAIN SDK Resources
55
keywords: Dynamic Web TWAIN, TWAIN, Documentation, Resources
66
breadcrumbText: Resources
77
description: Dynamic Web TWAIN SDK Documentation Resources Page
8-
permalink: /about/resources.html
98
---
109

1110
# Resources

articles/extended-usage/advanced-initialization.md renamed to _articles/extended-usage/advanced-initialization.md

Lines changed: 43 additions & 44 deletions
Large diffs are not rendered by default.

articles/extended-usage/barcode-processing.md renamed to _articles/extended-usage/barcode-processing.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Dynamic Web TWAIN SDK Features - Read Barcode
55
keywords: Dynamic Web TWAIN, Documentation, Read Barcode
66
breadcrumbText: Read Barcode
77
description: Dynamic Web TWAIN SDK Documentation Read Barcode Page
8-
permalink: /extended-usage/barcode-processing.html
98
---
109

1110
# Barcode Reader
@@ -14,7 +13,7 @@ With the increasing use of barcode reading in document management systems, the B
1413

1514
> NOTE
1615
>
17-
> Barcode reading can be performed on the client side as well as the server side. For `Dynamic Web TWAIN` , we only consider client-side reading. If you are interested in reading on the server side, you can contact [Dynamsoft Support]({{site.about}}getsupport.html).
16+
> Barcode reading can be performed on the client side as well as the server side. For `Dynamic Web TWAIN` , we only consider client-side reading. If you are interested in reading on the server side, you can contact [Dynamsoft Support](/_articles/about/getsupport.md).
1817
1918
## Environment
2019

@@ -24,7 +23,7 @@ With the increasing use of barcode reading in document management systems, the B
2423

2524
### Step one - Include the add-on
2625

27-
To include this add-on is to reference the necessary JavaScript file which is included in the [resources files]({{site.faq}}what-are-the-resources-files.html).
26+
To include this add-on is to reference the necessary JavaScript file which is included in the [resources files](/_articles/faq/what-are-the-resources-files.md).
2827

2928
> If you are using the [dwt package](https://www.npmjs.com/package/dwt), the barcode reader is already included in the main JavaScript file ( `dynamsoft.webtwain.min.js` or `dynamsoft.webtwain.min.mjs` ) which means you can skip this step.
3029
@@ -34,7 +33,7 @@ To include this add-on is to reference the necessary JavaScript file which is in
3433

3534
### Step two - Start the reading
3635

37-
Now that the add-on has been referenced, we can call [`decode()`]({{site.info}}api/Addon_BarcodeReader.html#initruntimesettingswithstring) to start reading barcode(s).
36+
Now that the add-on has been referenced, we can call [`decode()`](/_articles/info/api/Addon_BarcodeReader.md#initruntimesettingswithstring) to start reading barcode(s).
3837

3938
``` javascript
4039
function readBarcodes(imageIndex) {
@@ -51,7 +50,7 @@ function readBarcodes(imageIndex) {
5150
}
5251
```
5352

54-
Note that the barcode reading does take a bit of time, so it'll help to add an indicator as mentioned in [Loading Bar and Backdrop]({{site.indepth}}features/ui.html#loading-bar-and-backdrop)
53+
Note that the barcode reading does take a bit of time, so it'll help to add an indicator as mentioned in [Loading Bar and Backdrop](/_articles/extended-usage/ui-customization.md#loading-bar-and-backdrop)
5554

5655
``` javascript
5756
function readBarcodes(imageIndex) {
@@ -76,7 +75,7 @@ function readBarcodes(imageIndex) {
7675

7776
### Step three - Check the result
7877

79-
Check the structure of the resulting object [here]({{site.info}}api/Addon_BarcodeReader.html#decode). The following code prints out the text contained in the barcode(s)
78+
Check the structure of the resulting object [here](/_articles/info/api/Addon_BarcodeReader.md#decode). The following code prints out the text contained in the barcode(s)
8079

8180
``` javascript
8281
Dynamsoft.DWT.OnWebTwainPreExecute();
@@ -98,7 +97,7 @@ DWTObject.Addon.BarcodeReader.decode(imageIndex)
9897

9998
Most of the time, you simply need to use the default decode method to read most of the barcode images out there. However, you may encounter some barcodes that fail to be read and sometimes you might want to limit which barcode types the reader should pick up, and more.
10099

101-
The runtime settings of the add-on gives you access to a wide array of customizable parameters, all of which you can check out with the method [ `getRuntimeSettings()` ]({{site.info}}api/Addon_BarcodeReader.html#getruntimesettings) and change with the method [ `updateRuntimeSettings()` ]({{site.info}}api/Addon_BarcodeReader.html#updateruntimesettings). Now to demonstrate a few typical customization scenarios:
100+
The runtime settings of the add-on gives you access to a wide array of customizable parameters, all of which you can check out with the method [ `getRuntimeSettings()` ](/_articles/info/api/Addon_BarcodeReader.md#getruntimesettings) and change with the method [ `updateRuntimeSettings()` ](/_articles/info/api/Addon_BarcodeReader.md#updateruntimesettings). Now to demonstrate a few typical customization scenarios:
102101

103102
### Specify the Barcode Type(s) to Read
104103

@@ -160,7 +159,7 @@ DWTObject.Addon.BarcodeReader.updateRuntimeSettings(runtimeSettings);
160159

161160
### Set the runtime settings using JSON
162161

163-
So far, we edited the values of specific runtime settings via accessing each individual setting and adjusting its value. However, the add-on also provides the developer the ability to set everything at once using a JSON string. The method is called [ `initRuntimeSettingsWithString()` ]({{site.info}}api/Addon_BarcodeReader.html#initruntimesettingswithstring).
162+
So far, we edited the values of specific runtime settings via accessing each individual setting and adjusting its value. However, the add-on also provides the developer the ability to set everything at once using a JSON string. The method is called [ `initRuntimeSettingsWithString()` ](/_articles/info/api/Addon_BarcodeReader.md#initruntimesettingswithstring).
164163

165164
> Some advanced features, such as dedicated configuration of a binarization mode, are only possible when using the method `initRuntimeSettingsWithString()` .
166165
@@ -281,7 +280,7 @@ DWTObject.Addon.BarcodeReader.updateRuntimeSettings('coverage').then( /*---*/ );
281280

282281
### Reset settings
283282

284-
You can always go back to the default settings with the method [ `resetRuntimeSettings()` ]({{site.info}}api/Addon_BarcodeReader.html#resetruntimesettings).
283+
You can always go back to the default settings with the method [ `resetRuntimeSettings()` ](/_articles/info/api/Addon_BarcodeReader.md#resetruntimesettings).
285284

286285
## Use barcode to classify and separate documents
287286

articles/extended-usage/buffer-caching.md renamed to _articles/extended-usage/buffer-caching.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ title: Dynamic Web TWAIN SDK Guide - Buffer Caching
55
keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamic Web TWAIN Service, caching, buffer,
66
breadcrumbText: Dynamic Web TWAIN Service
77
description: Dynamic Web TWAIN SDK Documentation Dynamic Web TWAIN Service Page
8-
permalink: /extended-usage/buffer-caching.html
98
---
109

1110
# Buffer Caching
@@ -16,9 +15,9 @@ The DWT image buffer is controlled by the Dynamic Web TWAIN Service(formerly kno
1615

1716
The DWT image buffer handles data using the `DIB` format, which take up a lot of space in memory. For example, one A4 paper scanned in 300 DPI takes around 24MB in memory, which means 2GB of physical memory can only store no more than 85 of these images. As more images are processed, more memory gets used which may pose a threat to other programs on the machine. Due to this, the disk cache function was added. After enabling disk caching, most images will be temporarily cached on the disk, while keeping some active images in the memory to maintain high performance.
1817

19-
The disk caching feature is enabled by default, but can be disabled by setting [`IfAllowLocalCache`]({{site.info}}api/WebTwain_Buffer.html#ifallowlocalcache) to `false` .
18+
The disk caching feature is enabled by default, but can be disabled by setting [`IfAllowLocalCache`](/_articles/info/api/WebTwain_Buffer.md#ifallowlocalcache) to `false` .
2019

21-
You can also set how much memory `Dynamic Web TWAIN` can use before images start to be cached. By default, **800MB** is used. You can change it using the property [`BufferMemoryLimit`]({{site.api}}WebTwain_Buffer.html#buffermemorylimit).
20+
You can also set how much memory `Dynamic Web TWAIN` can use before images start to be cached. By default, **800MB** is used. You can change it using the property [`BufferMemoryLimit`](/_articles/info/api/WebTwain_Buffer.md#buffermemorylimit).
2221

2322
> Note: All cached data is encrypted and can only be accessed by `Dynamic Web TWAIN`. When `Dynamic Web TWAIN` is unloaded (like when the browser tab refreshes or closes), the cached data is destroyed and removed from the disk automatically.
2423
@@ -38,7 +37,7 @@ Starting from version 18.5, Dynamic Web TWAIN introduces a new feature that faci
3837
3938
### Create a storage folder
4039

41-
First of all, you need to create a storage item by [`createLocalStorage()`]({{site.info}}api/WebTwain_IO.html#createlocalstorage) which is used to save the encrypted image caches. For example,
40+
First of all, you need to create a storage item by [`createLocalStorage()`](/_articles/info/api/WebTwain_IO.md#createlocalstorage) which is used to save the encrypted image caches. For example,
4241

4342
```javascript
4443
var folderSettings = {
@@ -56,7 +55,7 @@ The local directory of the created storage folder is under
5655

5756
**Save image caches**
5857

59-
To save the specified image(s) to the storage folder, [`saveToLocalStorage()`]({{site.info}}api/WebTwain_IO.html#savetolocalstorage) method is required.
58+
To save the specified image(s) to the storage folder, [`saveToLocalStorage()`](/_articles/info/api/WebTwain_IO.md#savetolocalstorage) method is required.
6059

6160
```javascript
6261
var bExist = await DWTObject.localStorageExist(storageItemUid); // Determine whether the folder exists
@@ -76,7 +75,7 @@ else {
7675

7776
**Load image(s) from the storage folder**
7877

79-
To load the encypted image caches into Dynamic Web TWAIN again, please use the method [`loadFromLocalStorage()`]({{site.info}}api/WebTwain_IO.html#loadfromlocalstorage).
78+
To load the encypted image caches into Dynamic Web TWAIN again, please use the method [`loadFromLocalStorage()`](/_articles/info/api/WebTwain_IO.md#loadfromlocalstorage).
8079

8180
```javascript
8281
var bExist = await DWTObject.localStorageExist(storageItemUid); // Determine whether the folder exists
@@ -95,7 +94,7 @@ else {
9594

9695
**Remove the storage folder**
9796

98-
If you would like to remove the storage folder by programming, the method [`removeLocalStorage()`]({{site.info}}api/WebTwain_IO.html#removelocalstorage) can help.
97+
If you would like to remove the storage folder by programming, the method [`removeLocalStorage()`](/_articles/info/api/WebTwain_IO.md#removelocalstorage) can help.
9998

10099
```javascript
101100
var bExist = await DWTObject.localStorageExist(storageItemUid); // Determine whether the folder exists

articles/extended-usage/dynamsoft-service-configuration.md renamed to _articles/extended-usage/dynamsoft-service-configuration.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ title: Dynamic Web TWAIN SDK Deployment - Dynamic Web TWAIN Service
66
keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamic Web TWAIN Service
77
breadcrumbText: Dynamic Web TWAIN Service
88
description: Dynamic Web TWAIN SDK Documentation Dynamic Web TWAIN Service Page
9-
permalink: /extended-usage/dynamsoft-service-configuration.html
109
---
1110

1211
# Configuring the Dynamic Web TWAIN Service
@@ -51,7 +50,7 @@ Access-Control-Allow-Origin=http://192.168.8.212, http://192.168.8.126:8033, htt
5150

5251
![Access-Control-Allow-Origin]({{site.assets}}imgs/Access-Control-Allow-Origin.png)
5352

54-
After configuring the origins in the `DSConfiguration.ini` file, please set [`IfCheckCORS`]({{site.info}}api/Dynamsoft_WebTwainEnv.html#ifcheckcors) to `true` in `dynamsoft.webtwain.config.js`.
53+
After configuring the origins in the `DSConfiguration.ini` file, please set [`IfCheckCORS`](/_articles/info/api/Dynamsoft_WebTwainEnv.md#ifcheckcors) to `true` in `dynamsoft.webtwain.config.js`.
5554

5655
When a request comes from a different origin, a CORS error message will be displayed, both in a pop-up and in the console.
5756

@@ -63,7 +62,7 @@ When a request comes from a different origin, a CORS error message will be displ
6362

6463
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 behaviour of the library. The prompt will display the download link. Once the installer is downloaded, the installation process will take just a few seconds.
6564

66-
The prompt comes up when you try to [create a WebTwain instance]({{site.extended-usage}}advanced-initialization.html#instantiating-webtwain-without-onwebtwainready) in Service mode.
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.
6766

6867
![Initialization]({{site.assets}}imgs/Initialization-1.png)
6968

@@ -93,7 +92,7 @@ If Dynamic Web TWAIN Service is not installed, users may receive the error 'The
9392

9493
## Related Resources:
9594

96-
* <a href="{{site.faq}}what-does-dynamsoft-service-do-on-end-user-machine.html" target="_blank">What does Dynamic Web TWAIN Service do?</a>
97-
* <a href="{{site.faq}}service-prompting-to-install-repeatedly.html" target="_blank">I have installed the Dynamic Web TWAIN Service on an end-user machine but still got asked to install it repeatedly. Why?</a>
98-
* <a href="{{site.faq}}how-to-uninstall-dynamsoft-service.html" target="_blank">How to uninstall Dynamic Web TWAIN Service?</a>
99-
* <a href="{{site.faq}}can-i-install-dynamsoft-service-silently.html" target="_blank">Can I install Dynamic Web TWAIN Service silently?</a>
95+
* [What does Dynamic Web TWAIN Service do?](/_articles/faq/what-does-dynamsoft-service-do-on-end-user-machine.md){:target="_blank"}
96+
* [I have installed the Dynamic Web TWAIN Service on an end-user machine but still got asked to install it repeatedly. Why?](/_articles/faq/service-prompting-to-install-repeatedly.md){:target="_blank"}
97+
* [How to uninstall Dynamic Web TWAIN Service?](/_articles/faq/how-to-uninstall-dynamsoft-service.md){:target="_blank"}
98+
* [Can I install Dynamic Web TWAIN Service silently?](/_articles/faq/can-i-install-dynamsoft-service-silently.md){:target="_blank"}

0 commit comments

Comments
 (0)