Customize your scan settings

As we introduced in the previous section Three ways to use Dynamic Web TWAIN, You can control Dynamic Web TWAIN objects in three ways: Properties, Methods and Events. The complete list of all built-in properties, methods and events of Dynamic Web TWAIN is available in our online API Documentation for your reference. Here we will introduce Dynamic Web TWAIN’s functionality in more details:   Before you start an actual scan session, you can choose how you want your documents to be scanned. Normally, you can change all of the settings in the scanner’s built-in User Interface.

Before you start an actual scan session, you can choose how you want your documents to be scanned. Normally, you can change all of the settings in the scanner’s built-in User Interface. Take the Virtual scanner for example:

image017

On one hand, all these settings might be overwhelming for end users, especially for those without a technical background. On the other hand, you might want all your archived documents to be scanned the same way. With Dynamic Web TWAIN, you can customize all these settings in your JavaScript code. For example:

DWObject.SelectSource();
/* You should customize the settings after opening a source */
DWObject.OpenSource();  
/* Hide the User Interface of the scanner */                 
DWObject.IfShowUI = false;     
/* Use the document feeder to scan in batches */       
DWObject.IfFeederEnabled = true;  
/* Scan in Simplex mode (only 1 side of the page) */      
DWObject.IfDuplexEnabled = false;    
/* Scan pages in GRAY */   
DWObject.PixelType = EnumDWT_PixelType.TWPT_GRAY; 
/* Scan pages in 200 DPI */ 
DWObject.Resolution = 200;   
/* Start scanning */             
DWObject.AcquireImage();                  

Related settings

Is this page helpful?

Leave a Reply

Your email address will not be published.