Deploy & Distribute

Server deployment

If you are using the OCR pro module of Dynamic Web TWAIN on the server-side, you will need to install Dynamsoft Service on the server with many extra but necessary files required by the OCR pro module. These files as well as a readme file on how to install the service in such a case are included in all the samples for the OCR pro module. If you have difficulty finding such a sample or are not sure how to install Dynamsoft Service for OCR Pro. You can contact Dynamsoft Support.

Generally, Dynamic Web TWAIN runs 100% on the client-side, thus it doesn't matter what operating system runs on the server. The role of the server is to hold the Resources of the SDK and supply them when needed. Therefore, no matter what web server is used, you just need to make sure that it has the following MIME types set up correctly.

Extension MIME Type
.css text/css
.js application/javascript
.zip application/x-zip-compressed
.cab application/
.exe application/octet-stream
.msi application/octet-stream
.pkg application/pkg-mac
.rpm audio/x-pn-realaudio-plugin
.deb application/x-debian-package
.wasm application/wasm

About the Running Services

On Windows

By default, there are always three Dynamsoft Service processes running. All of them are called Dynamsoft Service and uses the same file DynamsoftService.exe. However they are started with different arguments.

The main process is started without any argument.


Then there is a monitor process which is meant to monitor the main process and automatically start it in case it crashes

`C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64\DynamsoftService.exe -asmonitor Global\Dynamsoft_1.5.0_352325843_stop_service_event Global\Dynamsoft_1.5.0_352325828_certcheck_event`

The last always-running process is meant to support the SSL certificate for Firefox C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64\DynamsoftService.exe" "-certcheck" "70056" "Global\Dynamsoft_1.5.0_352326875_1_certcheck_event

Apart from these three, each time you open a browser tab to use Dynamic Web TWAIN, one more process will appear which is the Dynamsoft Scanning New Module.

`"-scan" "\\.\pipe\dynamsoftscan_15.0_70056_60" "0" "Global\ss352604281_61_70056" "0" "C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64\dwt_trial_15.0.0.0625.dll"`

About the Distribution Files

Like any other libraries, you need to include the resource files of Dynamic Web TWAIN to use it in your project. The library is distributed as multiple JavaScript files, a CSS file and multiple binary files. From version 14.1 to 15.2, the files are organized as shown below


Depending on how you design your application, you can remove some of them to keep only the necessary files. The purpose of these files is detailed below to help you better understand them.

JavaScript, CSS, etc.
  • Readme.txt

    This file contains information about the resources files.

  • dynamsoft.webtwain.config.js

    This file is used to make basic configuration of Dynamic Web TWAIN. It's where you enter the product key for the product and to change the initial viewer size, etc.

  • dynamsoft.webtwain.initiate.js

    This file is the core of the Dynamic Web TWAIN JavaScript Library. You're not supposed to change it without consulting the Dynamsoft Support Team.

  • dynamsoft.webtwain.install.js

    This file is used to configure the dialogs which show up when Dynamic Web TWAIN is not installed or needs to be upgraded. This file is automatically loaded in dynamsoft.webtwain.initiate.js.

  • dynamsoft.webtwain.css

    This file contains the style definitions for all the elements of built-in image viewer, progress bar, dialogs, etc. This file is automatically loaded in dynamsoft.webtwain.initiate.js.

  • addon/dynamsoft.webtwain.addon.pdf.js

    This file contains the functionalities of the PDF Rasterizer addon. You're not supposed to change it without consulting the Dynamsoft Support Team.

  • addon/dynamsoft.upload.js

    This file defines the interfaces of the Dynamsoft Upload Module.

Binary files
  • DynamsoftServiceSetup.msi

    This file installs Dynamic Web TWAIN on Windows which supports IE 8+, Edge, Chrome/Firefox 27+.

  • DynamsoftServiceSetup.pkg

    This file installs Dynamic Web TWAIN on macOS which supports Safari 7+, Chrome/Firefox 27+.

  • DynamsoftServiceSetup.deb or DynamsoftServiceSetup.rpm

    These two files install Dynamic Web TWAIN on Linux which supports Chrome/Firefox 27+.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""