Dynamic Web TWAIN Mobile Web Capture SDK
Dynamic Web TWAIN Mobile Web Capture SDK is a web document capture SDK for iOS and Android browsers. It is designed for developers to build document scanning web applications for mobile users to load, edit, save, upload files, and capture images from the camera right in mobile browsers.
To see it in action, please visit this online demo.
Note: Dynamic Web TWAIN SDK v17.3 is built in this package.
Table of Contents
- Supported Environments
- License Key
- Quick Start
- Contact Us
- License Agreement
Supported Mobile Web Browsers
Dynamic Web TWAIN relies on the files in the
/dist/ folder to work. Make sure to put these files on your server and correctly refer to them by specifying the path with
ResourcesPath (relative and absolute paths are both okay).
Step 1. Create an HTML page and load
dynamsoft.webtwain.min.js into your page:
<!DOCTYPE html> <html> <head> <title>Hello World</title> <script src="dist/dynamsoft.webtwain.min.js"></script> </head> <body> </body> </html>
Note that a relative path is used. You might want to change it based on where you are putting your code. The best practice is to put all the files on your own server and under the same domain as your web application.
Step 2. Add a script tag and make initial settings:
ResourcesPathmust be set in order to use the library.
ResourcesPathis a relative path to where you put the directory "/dist/" and all the files in it.
- If you don't have a valid
ProductKey, you can request a trial key to use.
- To better use the mobile web capture, the
UseLocalServicemust be set to false.
Step 3. Write code to use the package to do a simple document scan
Step 4. Configure the Server
Set the MIME type for .wasm as application/wasm on your webserver.
The goal is to configure your server to send the correct Content-Type header for the wasm file so that it is processed correctly by the browser.
Different types of webservers are configured differently, for example:
To use the library, you must access your website / web application via a secure HTTPS connection. This is due to browser security restrictions which only grant camera video streaming access to a secure context.
For convenience, self-signed certificates can be used during development and testing.
|Document edge detection|
|Document perspective correction|
|Document post-processing by filters|
|Front and rear camera switching|
|Dedicated image and PDF viewer|
|Built-in ready-to-use UI|
|SIMD and WebGL acceleration|
|Multi-Format export and sharing|
Contact Dynamsoft to resolve any issue you encounter with the library.
Check out the release notes of the Dynamic Web TWAIN library.