version 13.4.1
Dynamic Web TWAIN is a TWAIN-based scanning SDK software specifically designed for web applications. With just a few lines of code, you can develop robust applications to scan documents from TWAIN-compatible scanners, edit the scanned images and save them to a file system.
https://www.dynamsoft.com/Downloads/WebTWAIN_Download.aspx
https://www.dynamsoft.com/help/TWAIN/WebTwain/index.htm.
- TWAIN specification 2.1 and below compatible (ActiveX, HTML5, Plugin Editions).
- TWAIN specification 1.9 and below compatible (Mac Edition).
- Supports both 32 and 64-bit TWAIN drivers (ActiveX, HTML5, Plugin Editions).
- Optional disk caching mechanism enables high volume document scanning (up to thousands of pages).
- Supports Auto Document Feeder (ADF) and multiple image acquisition.
- Supports duplex scanning mode.
- ActiveX, Plug-in and HTML5 editions provide an Image Editor for image editing and viewing.
- ActiveX, Plug-in and HTML5 Editions support adding colored rectangles to images.
- Supports multiple images selection.
- Supports image swapping.
- Supports clearing specified areas of an image, and filling cleared areas with color.
- Supports zooming.
- Downloads and uploads images via HTTP/HTTPS or FTP/FTPS (no FTPS support for Mac Edition).
- Saves and uploads images as BMP, JPEG, PNG, TIFF and PDF files.
- Supports multi-page TIFF and multi-page PDF.
- Mac Edition supports loading JPEG2000, PSD, and TGA image formats.
- Mac Edition supports loading text-based PDF files.
- Supports saving images as a byte array.
- ActiveX Control digitally signed by VeriSign.
- ActiveX Edition marked safe for initializing and scripting.
- Supports Windows Authentication, Forms Authentication and Basic Authentication.
- Compatible with Data Execution Prevention (DEP) and Protected Mode.
- Proxy connections supported, no need for customers to reconfigure their firewalls.
- ActiveX, Plug-in and HTML5 editions support SSL for FTP/HTTP uploading and downloading.(Mac Edition only includes SSL for HTTP uploading/downloading support).
https://www.dynamsoft.com/Downloads/WebTWAIN-Sample-Download.aspx
-
Create a new web project and copy the Dynamsoft's Resources folder to your project:
-
Create an empty HTML page:
-
Include the Dynamic Web TWAIN JavaScript library:
<script type="text/javascript" src="Resources/dynamsoft.webtwain.initiate.js"> </script> <script type="text/javascript" src="Resources/dynamsoft.webtwain.config.js"> </script>
-
Add Dynamic Web TWAIN container:
<div id="dwtcontrolContainer"> </div>
-
Add a Scan button:
<input type="button" value="Scan" onclick="AcquireImage();" /> <script type="text/javascript"> function AcquireImage(){ var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); DWObject.IfDisableSourceAfterAcquire = true; DWObject.SelectSource(); DWObject.OpenSource(); DWObject.AcquireImage(); } </script>
<html>
<head>
<title>Hello World</title>
<script type="text/javascript" src="Resources/dynamsoft.webtwain.initiate.js"> </script>
<script type="text/javascript" src="Resources/dynamsoft.webtwain.config.js"> </script>
</head>
<body>
<input type="button" value="Scan" onclick="AcquireImage();" />
<div id="dwtcontrolContainer"> </div>
<script type="text/javascript">
function AcquireImage(){
var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
DWObject.IfDisableSourceAfterAcquire = true;
DWObject.SelectSource();
DWObject.OpenSource();
DWObject.AcquireImage();
}
</script>
</body>
</html>