Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions articles/extended-usage/advanced-initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, extended guide, advanced, advanced initialization,
breadcrumbText: Advanced DWT Initialization
description: Advanced DWT Initialization
permalink: /extended-usage/advanced-initialization.html
redirect_from: /indepth/features/initialize.html
---

# Advanced DWT Initialization
Expand Down Expand Up @@ -219,7 +218,7 @@ This method creates a `WebTwain` instance, and makes it available through the su

`Dynamsoft.DWT.CreateDWTObject()` can also set network configurations with an overloaded method like so:

```JS
```javascript
CreateDWTObject(
ContainerId: string,
host: string,
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/barcode-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Read Barcode
breadcrumbText: Read Barcode
description: Dynamic Web TWAIN SDK Documentation Read Barcode Page
permalink: /extended-usage/barcode-processing.html
redirect_from: /indepth/features/barcode.html
---

# Barcode Reader
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/buffer-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamsoft Service, cachi
breadcrumbText: Dynamsoft Service
description: Dynamic Web TWAIN SDK Documentation Dynamsoft Service Page
permalink: /extended-usage/buffer-caching.html
redirect_from: /indepth/features/buffer.html
---

# Buffer Caching
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/dynamsoft-service-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Dynamsoft Service
breadcrumbText: Dynamsoft Service
description: Dynamic Web TWAIN SDK Documentation Dynamsoft Service Page
permalink: /extended-usage/dynamsoft-service-configuration.html
redirect_from: /indepth/deployment/service.html
---

# Configuring the Dynamsoft Service
Expand Down
3 changes: 1 addition & 2 deletions articles/extended-usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ needAutoGenerateSidebar: true
title: Dynamic Web TWAIN SDK Extended Usage Guide
keywords: Dynamic Web TWAIN, extended guide, advanced, advanced guide
breadcrumbText: Dynamic Web TWAIN SDK Extended Usage Guide
description: Advanced Initialization
description: Extended Usage
permalink: /extended-usage/index.html
redirect_from: /indepth/features/
---

# Extended Usage Guide
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/pdf-compression.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, PDF Compressor
breadcrumbText: PDF Compressor (Beta)
description: Dynamic Web TWAIN SDK Documentation PDF Compressor
permalink: /extended-usage/pdf-compression.html
redirect_from: /indepth/features/pdfc.html
---

# PDF Compressor (Beta)
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/pdf-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Handle PDF
breadcrumbText: Handle PDF
description: Dynamic Web TWAIN SDK Documentation Handle PDF Page
permalink: /extended-usage/pdf-processing.html
redirect_from: /indepth/features/pdf.html
---

# Processing PDFs
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/system-message-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, UI Customization, display language, language, messa
breadcrumbText: Configuring System Messages
description: Configuring System Messages
permalink: /extended-usage/system-message-configuration.html
redirect_from: /indepth/features/ui.html
---

# Configuring System Messages
Expand Down
1 change: 0 additions & 1 deletion articles/extended-usage/ui-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, UI
breadcrumbText: UI
description: Dynamic Web TWAIN SDK Documentation UI Page
permalink: /extended-usage/ui-customization.html
redirect_from: /indepth/features/ui.html
---

# UI Elements
Expand Down
2 changes: 1 addition & 1 deletion articles/general-usage/file-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ We first enable file selection dialogue with the [`IfShowFileDialog`]({{site.api

[`LoadImage()`]({{site.api}}WebTwain_IO.html#loadimage), works similarly to `LoadImageEx()`, but it does not specify an image file format:

```JS
```javascript
DWTObject.LoadImage(
"", // File path empty while file selection dialog is enabled
function () { console.log("Successfully loaded file"); },
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/image-export/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, upload, output, web, server, web ser
breadcrumbText: Exporting Images
description: Dynamic Web TWAIN SDK Image Export Documentation
permalink: /general-usage/image-export/index.html
redirect_from:
- /indepth/features/output.html
---

# Exporting Images
Expand Down
1 change: 0 additions & 1 deletion articles/general-usage/image-export/local-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, save, output, export, web, download,
breadcrumbText: Exporting Locally
description: Dynamic Web TWAIN SDK Documentation Local Export
permalink: /general-usage/image-export/local-export.html
redirect_from: /indepth/features/output.html#save
---

# Exporting Locally
Expand Down
1 change: 0 additions & 1 deletion articles/general-usage/image-export/server-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, upload, output, web, server, web ser
breadcrumbText: Uploading to Web Server
description: Dynamic Web TWAIN SDK Documentation Output Page
permalink: /general-usage/image-export/server-upload.html
redirect_from: /indepth/features/output.html
---

# Uploading Images to the Web Server
Expand Down
22 changes: 10 additions & 12 deletions articles/general-usage/image-processing/buffer-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: Managing the Image Buffer
description: Dynamic Web TWAIN SDK General Usage Guide - Managing the Image Buffer
permalink: /general-usage/image-processing/buffer-management.html
redirect_from:
- /indepth/features/buffer.html
---

# Managing the Image Buffer
Expand Down Expand Up @@ -153,19 +151,19 @@ DWT can tag images for custom grouping, sorting, and other data management tasks

For example, we may tag individual images with the "title" tag to identify title pages with [TagImages()]({{site.api}}WebTwain_Buffer.html#tagimages), like so:

```JS
```javascript
DWTObject.TagImages([0, 1], "title");
```

This applies the tag to the first and second images in the buffer (zero-indexed). If image indices are not known ahead of time, it's also useful to apply the tag to the currently displayed image in the viewer, via the [`CurrentImageIndexInBuffer`]({{site.api}}WebTwain_Buffer.html#currentimageindexinbuffer) property. This allows the user to tag the image upon inspection.

```JS
```javascript
DWTObject.TagImages([DWTObject.CurrentImageInBuffer], "title");
```

Rather than applying tags to existing images, it is possible to tag images as they enter the buffer via [SetDefaultTag()]({{site.api}}WebTwain_Buffer.html#setdefaulttag). By changing the default tag in reaction to application state, the web application can create rich image tagging logic:

```JS
```javascript
DWTObject.SetDefaultTag("title");
```

Expand All @@ -175,13 +173,13 @@ Every image entering the buffer after this will automatically receive this tag.

Tags are only useful if they can be interacted with. Once images have been tagged, we can filter them by their tags. For example, a user may need to display only the title pages for preview purposes. Once title pages have been tagged (either as they were scanned or after the fact), we can use [FilterImagesByTag()]({{site.api}}WebTwain_Buffer.html#filterimagesbytag) to selectively display just the title pages:

```JS
```javascript
DWTObject.FilterImagesByTag("title");
```

Once the user finishes with the preview, DWT can revert to displaying all images by clearing the filter with [ClearFilter()]({{site.api}}WebTwain_Buffer.html#clearfilter):

```JS
```javascript
DWTObject.ClearFilter();
```

Expand Down Expand Up @@ -254,21 +252,21 @@ APIs used:

Documents are another way to organize images within the image buffer. We may create multiple documents to group images, but unlike tags, images can each only belong to one document. Documents also preserve image order. First, we create a document with [CreateDocument()]({{site.api}}WebTwain_Buffer.html#createdocument):

```JS
```javascript
DWTObject.CreateDocument("documentName");
```

To add images into the document, we first open the document with [OpenDocument()]({{site.api}}WebTwain_Buffer.html#opendocument), and specifying the document by name:

```JS
```javascript
DWTObject.OpenDocument("documentName");
```

Subsequently, all images entering the buffer will belong to this document. Only one document may be open at a time - opening another document would close the previously open one.

We may also move images after they have entered documents, for example, to copy images from one document to another with [CopyToDocumentAsync()]({{site.api}}WebTwain_Buffer.html#coppytodocumentasync):

```JS
```javascript
DWTObject.CopyToDocumentAsync("sourceDocumentName", "destinationDocumentName", sourceIndices, targetIndex)
```

Expand Down Expand Up @@ -311,7 +309,7 @@ The image buffer provides event callbacks which can be used to customize buffer

- [`OnBufferChanged`]({{site.api}}WebTwain_Buffer.html#onbufferchanged) triggers whenever the state of the buffer changes. The details on how the buffer changes are provided in [`BufferChangeInfo`]({{site.api}}Interfaces.html#bufferchangeinfo):

```JS
```javascript
DWTObject.RegisterEvent('OnBufferChanged',
function (bufferChangeInfo: BufferChangeInfo) {
}
Expand All @@ -327,7 +325,7 @@ DWTObject.RegisterEvent('OnBufferChanged',

* [`OnTopImageInTheViewChanged`]({{site.api}}WebTwain_Buffer.html#ontopimageintheviewchanged) triggers when the first image visible in the `Viewer` changes. (The viewer may be configured to show more than one image at a time, see the [`Viewer` guide]({{site.general-usage}}viewer-configuration.html) for details).

```JS
```javascript
DWTObject.RegisterEvent(
'OnBitmapChanged',
function(
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/image-processing/image-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: Editing Images
description: Dynamic Web TWAIN SDK General Usage Guide - Image Editing
permalink: /general-usage/image-processing/image-editing.html
redirect_from: /indepth/features/edit.html

---

# Editing Images
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/image-processing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: Processing Images
description: Dynamic Web TWAIN SDK General Usage Guide - Processing Images
permalink: /general-usage/image-processing/index.html
redirect_from:
- /indepth/features/edit.html
---

# Processing Images
Expand Down
1 change: 0 additions & 1 deletion articles/general-usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: General usage guide
description: Dynamic Web TWAIN SDK General Usage Guide
permalink: /general-usage/index.html
redirect_from: /getstarted/
---

# General Usage Guide
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: DWT Initialization
description: Dynamic Web TWAIN SDK General Usage Guide - Initializing DWT
permalink: /general-usage/initialization.html
redirect_from:
- /indepth/features/initialize.html
---

# Initializing DWT
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/license.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ keywords: Dynamic Web TWAIN, Documentation, License
breadcrumbText: License
description: Dynamic Web TWAIN SDK Documentation License Page
permalink: /general-usage/license.html
redirect_from:
- /about/license.html
---

# Using License Keys
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/resource-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: Loading Library Resources
description: Dynamic Web TWAIN SDK General Usage Guide - Loading Library Resources
permalink: /general-usage/resource-loading.html
redirect_from: /indepth/features/initialize.html

---

# Loading Library Resources
Expand Down
5 changes: 2 additions & 3 deletions articles/general-usage/scanner-image-acquisition.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: Acquiring Images from Scanners
description: Dynamic Web TWAIN SDK General Usage Guide - Acquiring Images from Scanners
permalink: /general-usage/scanner-image-acquisition.html
redirect_from: /indepth/features/input.html
---

# Acquiring Images from Scanners
Expand Down Expand Up @@ -86,7 +85,7 @@ Finally, `AcquireImageAsync()` closes the data source after completing the scan,

`SelectSourceAsync()` can take an [`EnumDWT_DeviceType`]({{site.api}}Dynamsoft_Enum.html#dynamsoftdwtenumdwt_devicetype) argument to specify data sources using particular scanning protocols, and show only those data sources in the source selection UI. This may be useful in an internal use scenario where there is knowledge about the scanner hardware being used with DWT. For example, to show only eSCL data sources, we use the `Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER` enum like so:

```JS
```javascript
function AcquireImage() {
if (DWTObject) {
DWTObject.SelectSourceAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER)
Expand All @@ -112,7 +111,7 @@ Many use cases require a pre-specified set of scanning options (such as, but not

Modifying the previous `AcquireImage()` function results in this:

```JS
```javascript
function AcquireImage() {
if (DWTObject) {
DWTObject.SelectSourceAsync()
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/server-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Deployment, Server
breadcrumbText: Server Deployment
description: Dynamic Web TWAIN SDK Documentation Server Deployment Page
permalink: /general-usage/server-deployment.html
redirect_from:
- /indepth/deployment/server.html
---

# Deploy your application on the server
Expand Down
2 changes: 0 additions & 2 deletions articles/general-usage/server-side-scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Development, Server Scripts
breadcrumbText: Server Scripts
description: Dynamic Web TWAIN SDK Documentation Server Scripts Page
permalink: /general-usage/server-side-scripting.html
redirect_from:
- /indepth/development/Server-script.html
---

# Server-side Scripting
Expand Down
6 changes: 2 additions & 4 deletions articles/general-usage/viewer-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, development, guide, development guid
breadcrumbText: DWT Viewer Configuration
description: Dynamic Web TWAIN SDK General Usage Guide - Customizing the Viewer
permalink: /general-usage/viewer-configuration.html
redirect_from:
- /indepth/features/viewer.html
---

# Configuring the Viewer
Expand All @@ -26,7 +24,7 @@ The default `WebTwain` instance automatically creates its own `Viewer` instance

##### Relevant Snippet from `dynamsoft.webtwain.config.js`

```JS
```javascript
Dynamsoft.DWT.Containers = [{
ContainerId: 'customDivID', // New default div id
Width: '800px', // New initial Viewer pixel width
Expand Down Expand Up @@ -94,7 +92,7 @@ To further customize a `Viewer`, we create a `WebTwain` instance that does not h

##### Relevant Snippet from `dynamsoft.webtwain.config.js`

```JS
```javascript
Dynamsoft.DWT.Containers = []
Dynamsoft.DWT.AutoLoad = false;
```
Expand Down
6 changes: 2 additions & 4 deletions articles/hello-world/editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, editing, helloworld
breadcrumbText: Uploading documents
description: Dynamic Web TWAIN SDK HelloWorld - Editing Images
permalink: /hello-world/editing.html
redirect_from:
- /getstarted/editing.html
---

# Editing Images
Expand Down Expand Up @@ -35,7 +33,7 @@ Add this line in the `HelloWorld.html` body to create a color mode conversion bu

Then, define `binarizeImage()` in the `script` element:

```js
```javascript
function binarizeImage() {
DWTObject.ConvertToBW(DWTObject.CurrentImageIndexInBuffer);
}
Expand All @@ -57,7 +55,7 @@ Add two buttons for 90 degree clockwise and anti-clockwise image rotation:

Define the rotation functions in the `script` element:

```js
```javascript
function rotateCW() {
DWTObject.RotateRight(DWTObject.CurrentImageIndexInBuffer);
}
Expand Down
2 changes: 0 additions & 2 deletions articles/hello-world/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, upload, helloworld
breadcrumbText: Scan settings
description: Dynamic Web TWAIN SDK HelloWorld
permalink: /hello-world/index.html
redirect_from:
- /getstarted/helloworld.html
---
# Hello World

Expand Down
4 changes: 1 addition & 3 deletions articles/hello-world/scan-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ keywords: Dynamic Web TWAIN, Documentation, Hello World, upload, helloworld
breadcrumbText: Scan settings
description: Dynamic Web TWAIN SDK HelloWorld - Specifying Scan Settings
permalink: /hello-world/scan-settings.html
redirect_from:
- /getstarted/scansettings.html
---

# Specifying Scan Settings
Expand All @@ -29,7 +27,7 @@ The `AcquireImagesAsync()` API accepts scan setting arguments in a JSON format (

Add all three properties in the JSON argument passed to `AcquireImageAsync()`:

```js
```javascript
function AcquireImage() {
if (DWTObject) {
DWTObject.SelectSourceAsync()
Expand Down
Loading