-
Added a new mobile edition that enables document capturing via mobile cameras and other document manipulation functionalities. Most of the existing methods and properties are made compliant with this new edition.
-
Added WASM based document manipulation functionalities which enable the use of all features of Dynamic Web TWAIN except for document scanning without installing the Dynamsoft Service.
-
Added setting Dynamsoft.WebTwainEnv.UseLocalService to switch the working mode of the library between Local-Service mode and WASM mode. Only valid on desktop operating systems.
-
Replaced the built-in image viewer including the built-in image editor with the Dynamsoft Viewer.
-
The creation of a WebTwain instance is now independent from the UI. In version 16.0, you can create a WebTwain instance in 4 ways
- Specify a Container that has a ContainerId and assign it to Dynamsoft.WebTwainEnv.Containers. A ContainerId is essentially the id of an HTMLDivElement element which is required for generating a built-in Dynamsoft Viewer. Then call the method Dynamsoft.WebTwainEnv.GetWebTwain with ContainerId as the argument to get the instance.
- Call the method Dynamsoft.WebTwainEnv.CreateDWTObject to create an instance with built-in Dynamsoft Viewer.
- Specify a Container that has a WebTwainId but no ContainerId and assign it to Dynamsoft.WebTwainEnv.Containers. A WebTwainId is just a string to uniquely specify the instance. Then call the new method Dynamsoft.WebTwainEnv.GetWebTwainEx with WebTwainId as the argument to get the instance.
- Call the method Dynamsoft.WebTwainEnv.CreateDWTObjectEx to create an instance without a built-in Dynamsoft Viewer.
-
Added method LoadImageFromBinary() to enable importing data from binary (an object of the type Blob or ArrayBuffer).
-
Added methods getCapabilities() and setCapabilities() which enables fast capability negotiation.
-
Added method EnableSourceUI() to enable TWAIN configuration without scanning.
-
Added method SelectImages() to select one or multiple images programmatically. This method replaces the old APIs SetSelectedImageIndex() and SelectedImagesCount.
-
Added property SelectedImagesIndices to return the indices of selected images. This property replaces the old API GetSelectedImageIndex().
-
Added Viewer-specific APIs: setViewMode(), updateUISettings(), setButtonClass(), setSelectedImageArea(), zoomIn(), zoomOut(), bindCustomElement(), showCustomElement(), hideCustomElement(), toggleCustomElement(). These methods should be called like this: DWObject.Viewer.zoomIn().