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
10 changes: 7 additions & 3 deletions _articles/faq/XMLHttpRequest-cannot-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords: Dynamic Web TWAIN, Error Troubleshooting, XMLHttpRequest
breadcrumbText: XMLHttpRequest cannot load XXX
description: XMLHttpRequest cannot load XXX
date: 2021-12-03 23:26:46 +0800
last_modified: 2022-06-02 15:30:49 +0800
last_modified: 2026-01-23 06:35:12 -08:00
---

# Error Troubleshooting
Expand All @@ -28,7 +28,7 @@ You are uploading or downloading to/from a web server which is in a different do

### Solution

Try uploading to the same domain or update the server side configuration to allow cross domain requests. If you are using IIS, you can refer to the following configuration.
Try uploading to the same domain or update the server-side configuration to allow cross-domain requests. If you are using IIS, you can refer to the following configuration.

```xml
<system.webServer>
Expand All @@ -49,4 +49,8 @@ Try uploading to the same domain or update the server side configuration to allo
>
> If you are downloading a file, you might need to clear the browser cache because a cached file will not be requested again from the server, thus still no 'Access-Control-Allow-Origin' header will be presented.
>
> If you are using Windows Authentication, you may need to change the default setting of `withCredentials` in the `dynamsoft.webtwain.initiate.js` file. To do that, open the JS file, find `withCredentials:false` and change it to `withCredentials:true` .
> If you need to send cookies/credentials (e.g., Windows Authentication), enable credentials via code:
>
> ```javascript
> DWTObject.HTTPRequestswithCredentials = true; // adds withCredentials:true on upload requests
> ```
4 changes: 3 additions & 1 deletion _articles/faq/activeX-in-Edge-IE-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ keywords: Dynamic Web TWAIN, ActiveX, Internet Explorer mode, IE mode
breadcrumbText: How to run Dynamic Web TWAIN ActiveX in Microsoft Edge Internet Explorer (IE) mode
description: How to run Dynamic Web TWAIN ActiveX in Microsoft Edge Internet Explorer (IE) mode
date: 2022-04-22 05:24:12 +0800
last_modified: 2022-10-14 14:05:08 +0800
last_modified: 2026-01-21 14:32:41 -08:00
---

View all FAQs about [Project Deployment and End-user Installation](
https://www.dynamsoft.com/web-twain/docs/faq/#project-deployment-and-end-user-installation)

# How to run Dynamic Web TWAIN ActiveX in Microsoft Edge Internet Explorer (IE) mode

> ActiveX support was removed starting in Dynamic Web TWAIN v19. This article is archived for customers running versions earlier than 19. For supported browsers in v19 and later, please migrate to the HTML5 edition.

Microsoft is <a href="https://www.microsoft.com/en-us/edge/business/ie-mode" target="_blank">retiring Internet Explorer 11</a> on June 15, 2022. To support Dynamic Web TWAIN ActiveX, please configure IE mode in Edge following the steps below. For better browser compatibility, we strongly recommend [updating your web application with our HTML5 edition](/_articles/indepth/development/activex.md#move-away-from-activex){:target="_blank"}.

### Step by step instructions to configure Microsoft Edge IE mode
Expand Down
8 changes: 5 additions & 3 deletions _articles/faq/automatically-rotate-upside-down-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ keywords: Dynamic Web TWAIN, Capture/ Image Source, automatically rotate pages
breadcrumbText: Can the Dynamic Web TWAIN SDK automatically rotate upside-down pages during the document scanning process?
description: Can the Dynamic Web TWAIN SDK automatically rotate upside-down pages during the document scanning process?
date: 2021-12-08 03:01:32 +0800
last_modified: 2022-06-10 04:40:03 +0800
last_modified: 2026-01-21 14:51:06 -08:00
---

# Capture/Image Source

## Can the Dynamic Web TWAIN SDK automatically rotate upside-down pages during the document scanning process?

No, the rotation is not automatic, but it can be achieved by leveraging the rotating functionality explained in [this link](/_articles/general-usage/image-processing/image-editing.md#example---rotating-images){:target="_blank"}.
Dynamic Web TWAIN does not auto-rotate pages by default, but you can rotate images in code using the API covered in [this example](/_articles/general-usage/image-processing/image-editing.md#example---rotating-images){:target="_blank"}.

If you need to do automatic skew correction on scanned pages, you can refer to [this article](/_articles/faq/support-image-deskew.md) for our automatic de-skewing feature.
If you have the OCR Add-on (v19.3+), you can call [`DetectPageOrientation()`](/_articles/info/api/Addon_OCR.md#detectpageorientation){:target="_blank"} to detect the page orientation from recognized text and use that result to decide how to rotate.

Some scanners also offer an AutoDeskew/AutoRotate capability that runs on the device. If your scanner supports it, enable that option (see [our de-skew guidance](/_articles/faq/support-image-deskew.md) for scanner-side setup); otherwise, use the rotation API noted above based on your own detection logic.
23 changes: 0 additions & 23 deletions _articles/faq/camera-play-and-showvideo.md

This file was deleted.

9 changes: 5 additions & 4 deletions _articles/faq/chrome-106-107-warning.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ keywords: Dynamic Web TWAIN, Error Troubleshooting, Canvas2D, Warning
breadcrumbText: Warning message - Canvas2D Warning
description: Canvas2D Warning
date: 2022-10-13 18:34:42 +0800
last_modified: 2022-10-17 18:04:03 +0800
last_modified: 2026-01-21 14:54:50 -08:00
---

# Error Troubleshooting

## Warning message - Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true.

> Archived: This warning was fixed in Dynamic Web TWAIN 18.0. The steps below are only for projects pinned to versions prior to 18.0.

### Symptom

When you are using Chrome 107(developer version) & 106 (official version) or any version above these, you could encounter a warning in console:
Expand All @@ -34,7 +36,6 @@ Step 1. Navigate to '<strong>../Resources/dynamsoft.webtwain.initiate.js</strong

Step 2. Navigate to '<strong>../Resources/src/dynamsoft.viewer.js</strong>' replace all `getContext("2d")` to `getContext("2d",{willReadFrequently:true})`

### Status

### Planning

It will be fixed in version 18.0 officially.
Fixed in Dynamic Web TWAIN 18.0+. No action is needed on supported versions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ keywords: Dynamic Web TWAIN, Project Deployment and End-user Installation, insta
breadcrumbText: Is there any component of the Dynamic Web TWAIN SDK that needs to be installed on end-user machines?
description: Is there any component of the Dynamic Web TWAIN SDK that needs to be installed on end-user machines?
date: 2021-12-11 06:47:21 +0800
last_modified: 2022-10-19 05:45:25 +0800
last_modified: 2026-01-21 15:24:26 -08:00
---

View all FAQs about [Project Deployment and End-user Installation](
https://www.dynamsoft.com/web-twain/docs/faq/#project-deployment-and-end-user-installation)

# Is there any component of the Dynamic Web TWAIN SDK that needs to be installed on end-user machines?

For the [Desktop Service Edition](/_articles/general-usage/initialization.md#desktop-service-edition){:target="_blank"}, the Dynamic Web TWAIN Service (also called "Dynamsoft Service") needs to be installed on end-user machines. By default end-users will be prompted to install Dynamic Web TWAIN Service when they access your application for the first time.
For the [Desktop Service Edition](/_articles/general-usage/initialization.md#desktop-service-edition){:target="_blank"}, end users need the Dynamic Web TWAIN Service installed locally (this was called Dynamsoft Service” prior to v19.0). They are prompted to install it the first time they open your application.

When you upgrade Dynamic Web TWAIN, you may also need a reinstallation of Dynamic Web TWAIN Service on the client-side. For more information, please refer to [Update Dynamic Web TWAIN Service on the Client-side](/_articles/indepth/development/upgrade.md#update-dynamsoft-service-on-the-client-side){:target="_blank"}.
When you upgrade Dynamic Web TWAIN, plan to reinstall the service on client machines if required. See [Update Dynamic Web TWAIN Service on the Client-side](/_articles/indepth/development/upgrade.md#update-dynamsoft-service-on-the-client-side){:target="_blank"} for details.

If you do not want to install anything, there is an option.

You can enable Remote Scan, which scans documents from remote scanners connected to host machines. No installation is required on the client machine. Please check [here](/_articles/faq/how-to-enable-remote-scan.md){:target="_blank"} for more information on how remote scan works and how to enable it.
If you prefer zero client-side installation, enable Remote Scan. It routes scanning through a host machine’s service, so the browser client installs nothing. Learn how to enable it [here](/_articles/faq/how-to-enable-remote-scan.md){:target="_blank"}.
12 changes: 6 additions & 6 deletions _articles/faq/connection-couldnt-be-established.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords: Dynamic Web TWAIN, Error Troubleshooting, connection not established
breadcrumbText: A connection with the server could not be established
description: A connection with the server could not be established
date: 2020-12-10 16:11:49 +0800
last_modified: 2022-06-02 15:30:49 +0800
last_modified: 2026-01-21 15:26:16 -08:00
---

# Error Troubleshooting
Expand All @@ -16,16 +16,16 @@ last_modified: 2022-06-02 15:30:49 +0800

### Symptom

When attempting to upload images web server the upload fails and you receive the error message.
When attempting to upload images to your web server, the upload fails and you see this error message.

### Cause

The problem may occur when a connection with the server is not available.
This usually means the client cannot reach the server.

### Resolution

- Check if the HTTP port you set in your code coincides with the port number you set on your web server. You can use the [HTTPPort](/_articles/info/api/WebTwain_IO.md#httpport) property to set the port number.
- Make sure the address of the server is available. To check this, you can ping the address from a client machine.
- Verify the HTTP port in your code matches the server’s listening port. Set it with [`HTTPPort`](/_articles/info/api/WebTwain_IO.md#httpport).
- Confirm the server address is reachable (ping it from a client machine). Use either the machine name or IP with `HTTPUpload`.

> Note:
> Both the machine name and the IP address of the server can be used for the HTTPUpload method.
> Both the machine name and the IP address of the server can be used for the [`HTTPUpload`](/_articles/info/api/WebTwain_IO.md#httpupload) method.
2 changes: 1 addition & 1 deletion _articles/faq/deploy-to-all-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords: Dynamic Web TWAIN, Project Deployment and End-user Installation, deplo
breadcrumbText: Is there an easy way to deploy the end-user components to all users?
description: Is there an easy way to deploy the end-user components to all users?
date: 2021-07-14 18:58:25 +0800
last_modified: 2022-10-14 14:05:08 +0800
last_modified: 2025-03-31 00:00:00 +0800
---

View all FAQs about [Project Deployment and End-user Installation](
Expand Down
21 changes: 0 additions & 21 deletions _articles/faq/difference-between-camera-and-webcam.md

This file was deleted.

19 changes: 0 additions & 19 deletions _articles/faq/difference-between-ocr-basic-and-pro.md

This file was deleted.

6 changes: 3 additions & 3 deletions _articles/faq/document-scanning-slow-than-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ keywords: Dynamic Web TWAIN, Capture/ Image Source, slow scan
breadcrumbText: Document scanning via the Dynamic Web TWAIN SDK is slower than using the native scanner application. How can I speed it up?
description: Document scanning via the Dynamic Web TWAIN SDK is slower than using the native scanner application. How can I speed it up?
date: 2021-12-08 03:01:32 +0800
last_modified: 2022-10-21 14:05:54 +0800
last_modified: 2026-01-21 15:42:47 -08:00
---

# Capture/Image Source

## Document scanning via the Dynamic Web TWAIN SDK is slower than using the native scanner application. How can I speed it up?

Please first check if you use the same pre-scanning settings (e.g. color mode, resolution, etc.).
First, confirm you are using the same scan settings (color mode, DPI, duplex, etc.) as the native app.

Assuming the pre-scanning settings are the same, please double check if there are any automatic actions after scanning pages. You may double check the call back functions of the [AcquireImage](/_articles/info/api/WebTwain_Acquire.md#acquireimage){:target="_blank"} function or check if you write any code in the [OnPostTransfer](/_articles/info/api/WebTwain_Acquire.md#onposttransfer){:target="_blank"} or [OnPostAllTransfers](/_articles/info/api/WebTwain_Acquire.md#onpostalltransfers){:target="_blank"} event. If you need to run some automatic actions right after each page is scanned, it's recommended to use the [OnPostTransferAsync](/_articles/info/api/WebTwain_Acquire.md#onposttransferasync){:target="_blank"} event.
If settings match, look for extra work in your callbacks. Check code in `AcquireImage()` callbacks like [`OnPostTransfer`](/_articles/info/api/WebTwain_Acquire.md#onposttransfer){:target="_blank"} and [`OnPostAllTransfers`](/_articles/info/api/WebTwain_Acquire.md#onpostalltransfers){:target="_blank"}. If you must run per-page logic, prefer [`OnPostTransferAsync`](/_articles/info/api/WebTwain_Acquire.md#onposttransferasync){:target="_blank"} to avoid blocking the scan pipeline.

If the scanning performance issue persists, please <a href="mailto:support@dynamsoft.com">contact us</a>.
10 changes: 2 additions & 8 deletions _articles/faq/does-barcode-addon-support-patch-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ keywords: Dynamic Web TWAIN, Addon, patch code
breadcrumbText: Does your Barcode Reader addon support patch code?
description: Does your Barcode Reader addon support patch code?
date: 2021-12-01 01:09:41 +0800
last_modified: 2022-06-10 04:40:03 +0800
last_modified: 2026-01-21 15:48:44 -08:00
---

# Addon

## Does your Barcode Reader addon support patch code?

Yes, the add-on supports the patch code format (API <a href="https://www.dynamsoft.com/barcode-reader/parameters/enum/format-enums.html" target="_blank">EnumBarcodeFormatPATCHCODE</a>).
Check <a href="https://www.dynamsoft.com/barcode-reader/features/#Supported-Barcode-Types" target="_blank">here</a> for all supported barcode types.

By default, the add-on reads all the supported barcode types from the image. To read specific barcode types, you can use barcodeFormatIds and barcodeFormatIds2 in runtime settings. For patch code, you would use:
barcodeFormatIds = Dynamsoft.DBR.EnumBarcodeFormat.BF_ONED

More information can be found here: [Specify the Barcode Type(s) to Read](/_articles/extended-usage/barcode-processing.md#specify-the-barcode-types-to-read){:target="_blank"}.
Yes. Configure it in the barcode types list shown here: [Specify the Barcode Type(s) to Read](/_articles/extended-usage/barcode-processing.md#specify-the-barcode-types-to-read){:target="_blank"}.
6 changes: 3 additions & 3 deletions _articles/faq/download-older-version-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ keywords: Dynamic Web TWAIN, SDK Download, free trial, older version
breadcrumbText: Where can I download an older version of the Dynamic Web TWAIN SDK?
description: Where can I download an older version of the Dynamic Web TWAIN SDK?
date: 2021-11-20 00:43:45 +0800
last_modified: 2022-06-02 15:30:49 +0800
last_modified: 2026-01-21 15:55:20 -08:00
---

# SDK Download/Free Trial

## Where can I download an older version of the Dynamic Web TWAIN SDK?

You can easily work with the older version of Dynamic Web TWAIN by visiting the <a href="https://www.dynamsoft.com/customer/download" target="_blank">customer portal</a> and navigating to Download Center.
Visit the <a href="https://www.dynamsoft.com/customer/download" target="_blank">customer portal</a> and go to the Download Center to access older SDK versions. Release notes for current and past stable versions are in the [Stable Releases](/_articles/info/schedule/Stable.md) page.

Please note that Dynamsoft provides maintenance and support for every version of SDK for TWO years from their general availability date. Therefore, if you are using a very old version, we suggest you schedule an upgrade to the latest version. You can contact <a href="mailto:sales@dynamsoft.com">sales@dynamsoft.com</a> for any questions.
Dynamsoft provides maintenance and support for each SDK version for two years from its GA date. If you’re on an older release, plan an upgrade to the latest version. Contact <a href="mailto:sales@dynamsoft.com">sales@dynamsoft.com</a> with any questions.
4 changes: 2 additions & 2 deletions _articles/faq/download-virtual-scanner-for-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ keywords: Dynamic Web TWAIN, virtual scanner
breadcrumbText: Download virtual scanner for testing
description: Download virtual scanner for testing
date: 2021-07-14 18:55:57 +0800
last_modified: 2022-06-02 15:30:49 +0800
last_modified: 2026-01-21 15:56:52 -08:00
---

# Capture/Image Source

## Download virtual scanner for testing

If you do not have a TWAIN scanner on hand to test the library, you can download and use a virtual scanner which is a Sourceforge project.
If you do not have a TWAIN scanner on hand to test the library, you can download and use a virtual scanner created by the TWAIN Working Group.

- [32-bit virtual scanner](https://www.dynamsoft.com/download/TWAIN/twainds.win32.installer.2.1.3.msi)
- [64-bit virtual scanner](https://www.dynamsoft.com/download/TWAIN/twainds.win64.installer.2.1.3.msi)
Loading