Dynamic Web TWAIN: How can I do a duplex scan

First, please check if your device supports duplex scanning. You can use the Duplex property to check this. If your device supports duplex scanning, you can use the IfDuplexEnabled property to enable it.

Code Snippet

function DuplexScan() {   
    DWObject.SelectSource();    
    DWObject.OpenSource();

    if (DWObject.Duplex != 0)        
        DWObject.IfDuplexEnabled = true ;//Enable duplex        

    DWObject.XferCount = 2;
    DWObject.MaxImagesInBuffer = 2;
    DWObject.AcquireImage();
}
Is this page helpful?

Leave a Reply

Your email address will not be published.