License Verification

Basic Information

Since version 9.0, Dynamic Web TWAIN has been using the property ProductKey for license verification at runtime. The property accepts a series of alphanumeric code as the product key which is generated based on the license(s) you own. All editions share the same authentication mechanism.

Note

  1. One product key can be generated from one or many licenses, this is done by Dynamsoft
  2. The product key represents the encrypted license(s); every product key is unique
  3. The product key can also be bound to a specific domain (since version 11)

Use the Product Key

Set ProductKey in the file dynamsoft.webtwain.config.js

Dynamsoft.WebTwainEnv.ProductKey = 't0068MgAA…';

Set ProductKey in your code before you call the method AcquireImage()

function AcquireImage() {
    DWObject.SelectSource();
    DWObject.OpenSource();
    DWObject.IfShowUI = false;
    DWObject.ProductKey = 't0068Mg…';
    DWObject.AcquireImage();
}

Use Multiple ProductKeys

If you have multiple product keys generated from multiple serial numbers, you can combine all of them using the semi-colon ; and assign them to the ProductKey property.

Dynamsoft.WebTwainEnv.ProductKey = 't0068MgAA…;t006…;t00…';

Special Notice for the Barcode Reader Add-on

The Barcode Reader uses it's own product key and should be set separately in the file dynamsoft.barcodereader.config.js.

dynamsoft.dbrEnv.productKey = 't00976QAAAJjdYp84Fa5rEC…';

Use the same key

Since the Barcode Reader is an add-on for Dynamic Web TWAIN, it's also our recommendation to use the same key that contains licenses for both Dynamic Web TWAIN and the Barcode Reader. To do this, there are two steps

  1. Make sure you reference the file dynamsoft.webtwain.config.js before dynamsoft.barcodereader.config.js
  2. Write the following line to share the same key
    dynamsoft.dbrEnv.productKey = Dynamsoft.WebTwainEnv.ProductKey;
    

results matching ""

    No results matching ""

    results matching ""

      No results matching ""