Skip to content

sheikh-haris/Dynamic-Web-TWAIN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Web TWAIN SDK

version 13.4.1

Introduction

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.

Download

https://www.dynamsoft.com/Downloads/WebTWAIN_Download.aspx

Documentation

https://www.dynamsoft.com/help/TWAIN/WebTwain/index.htm.

Highlights

Scan
  • 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.

More

Edit
  • 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.

More

Saving, Uploading, and Downloading
  • 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.

More

Security
  • 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).

Samples

https://www.dynamsoft.com/Downloads/WebTWAIN-Sample-Download.aspx

Getting Started

  1. Create a new web project and copy the Dynamsoft's Resources folder to your project:

    image

  2. Create an empty HTML page:

    image

  3. 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>
    
  4. Add Dynamic Web TWAIN container:

    <div id="dwtcontrolContainer"> </div>
    
  5. 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>
    

Full Sample

<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>

Contact Us

support@dynamsoft.com