Dynamic Web TWAIN 16.2

Released: Jan 18, 2021

Updates in 16.2

Features

  • Connection with the Dynamsoft Service is now maintained after the computer wakes from sleep or hibernation. (Only on Microsoft Windows or Apple macOS.)
  • Added a new event OnBufferChanged which is triggered when the buffer changes. For example:
    • New pages enter the buffer.
    • Existing pages are removed.
    • Existing pages are modified.
    • Existing pages are shifted.
    • Existing pages are filtered by a specified tag.
    • Page selection changes.
  • Added a configuration page to update the host or ports of the Dynamsoft Service.
  • The default loader bar can now be customized with the Dynamsoft.WebTwainEnv.CustomizableDisplayInfo.loaderBarSource API.
  • Added a new global property to control whether to set focus on scanner-related windows opened when the browser tab on which the SDK is running is active.
  • Shadow DOM is now officially supported.
  • Added support for ARM-based macOS.
  • Added support for 64-bit Raspberry Pi.
  • Made the viewer more independent and robust. Related APIs have been redesigned.
    • Added a new global property Dynamsoft.WebTwainEnv.UseDefaultViewer to control whether the built-in viewer is used.
  • Scanning remotely now supports showing the Manufacturer’s User Interface. (Only when the remote machine is Windows.)
  • Improved the tagging mechanism.
    • Added a new method RenameTag() to rename an existing tag.
    • Added a new method ClearFilter() to stop filtering images by tag.
    • The method FilterImagesByTag() shows all images if no parameter is passed or shows no image at all if the tag value passed doesn’t exist or there is no images under that tag.
  • Updated the signatures for the files on macOS so that TWAIN drivers can be populated correctly.
  • Added global configuration options for the WASM-mode which includes maxHeapSize and fetchOptions.
  • Improved the methods getCapabilities and setCapabilities so that they work for ICA drivers on macOS.
  • The Barcode Reader add-on has been upgraded to 7.6.0.0112.
  • Improved the display quality of the viewer in single-image mode.
  • Added a 3rd parameter fill to the play() method which determines whether the video should fill the whole viewer and have a part of the video hidden.

Fixes

  • When the view changes from single-image mode to multi-image mode, the cursor used to be changed to “hand” which means you can drag and drop images, in v16.2, the cursor will stay unchanged. In other words, if the cursor was “crosshair” in single-image mode, it’ll continue to be “crosshair” in multi-image mode which means you can continue to draw rectangles on these images (NOTE that you can only draw on the current image). You can use the property Viewer.cursor to change the cursor in this case.
  • The properties Width and Height will always return the actual number of pixels even if you set them with a percentage like “50%”.
  • The properties BackgroundColor and SelectionImageBorderColor will always return a string that represents the style (colour, border, etc.) even if you set them with numbers. For example, BackgroundColor returns “#000032” if you set it to “50” and SelectionImageBorderColor returns “1px solid #000032” when you set it to “50”. Also, these two properties are deprecated and should be replaced by Viewer.background and Viewer.selectedPageBorder.
  • The properties IfFitWindow and FitWindowType are now write-only as their actual values may not be correct when you read them. As these properties are deprecated, use fitWindow() instead.
  • On macOS, the default transfer mode for TWAIN drivers is changed from “native” to “memory”.
  • The “Cut” (“Erase”) button in the image editor now cuts the selected area to the clipboard instead of just erasing the area.
  • The “Stretch” button has been deleted from the image editor.
  • Fixed a bug where if you create a WebTwain instance under WASM-mode and then destroy it and create another WebTwain instance under Service-mode, you will be prompted to install the Dynamsoft Service even if it is already installed.
  • Fixed a bug with the scanner model “Canon DR-M260” (200 series) where the manufacturer’s UI hangs or disappears once it is shown.
  • Fixed a bug on macOS where 1-bit TIFF files become inverted once they are transferred via the system clipboard.
  • Fixed a bug where changing the UI of the image editor will affect the main viewer.
  • Fixed a bug where the method updateRuntimeSettings will overwrite all settings you set with the method initRuntimeSettingsWithString.
  • Fixed a bug where the wrong PDF library is referenced when the SDK switches to the Service-mode from WASM-mode.
  • Fixed a bug on mobile devices where once an image is cut, its metadata is lost and can no longer be printed (it appears blank when being printed).
  • Fixed a bug where if the Dynamsoft Service is not installed and a WebTwain instance is created using the method CreateDWTObject() or CreateDWTObjectEx(), the connection to the service is not attempted automatically as expected (a page refreshing is required).
  • Fixed a bug with the API Dynamsoft.WebTwainEnv.CustomizableDisplayInfo so that it now works again.
  • Fixed a bug where removed images remain in the viewer.
  • Fixed a bug where if you set the display attribute of the viewer to none, it becomes black.
  • Fixed a bug where global keyboard or mouse events registered to the Dynamsoft Viewer were not released correctly.