npm dwt 18.5.0

latest releases: 18.5.1, 18.5.0-patch-20240517
6 months ago

New features

  • Save the encrypted image caches in local Dynamsoft Service folder

    In certain scenarios, there may be requirements to store encrypted image caches on a local disk for temporary data storage or backup purposes. Dynamic Web TWAIN introduces a new feature that facilitates developers in securely storing image caches in encrypted form within the Dynamsoft Service folder.

  • Access-Control-Allow-Origin for Dynamsoft Service

    A new security feature configures Dynamsoft Service to respond only to requests from specified origins.

  • Generate the encrypted PDF files

    Supports the generation of encrypted PDF files.

New APIs

  • Global

    APIs Description
    IfCheckCORS Whether to check CORS issue in detail.
  • Buffer

    APIs Description
    updateImage() Update the specified image with a new image.
    OnDiskExceedLimit A built-in callback triggered when disk cache exceeds the limit.
  • Input/Output

    APIs Description
    createLocalStorage() Create a storage folder locally to save the cache of encrypted images.
    localStorageExist() Determine whether the storage folder exists or not.
    saveToLocalStorage() Save encrypted image caches to the specified storage folder.
    loadFromLocalStorage() Load image from the specified storage folder.
    removeLocalStorage() Remove the specified storage folder.
    httpUploadBlob() Upload images which are in blob format.
    saveBlob() Save image which are in blob format.
    IfSortBySelectionOrder Whether to load the files by the selection order when load files by open file dialog.

Improvements

  • Updated third-party libraries to enhance security.
  • Added an optional parameter capabilities to the method getCapabilities() for getting specified capabilities.
  • Added modifyId to the interface BufferChangeInfo for returning the imageId of the modified image when OnBufferChanged is triggered.
  • Added password to the interface PDFWSettings for configuring the password of the PDF file to save when Write.Setup() is called.
  • Added data type Device to the parameter scanner in the interface ScanSetup for supporting the device object when startScan() is used.
  • Optimized the quality of the deskewed image in the built-in ImageEditor.

Changes

  • Changed the design of the default Dynamsoft Service installation pop-up.

  • Changed the data type of imageId from number to string. The affected APIs are as follows:

    • Methods: ImageIDToIndex(), IndexToImageID()
    • Interfaces:

      Interfaces Related Methods or Events
      TagInfo GetTagList()
      DocumentInfo GetDocumentInfoList()
      OutputInfo OnPostTransferAsync
      BufferChangeInfo OnBufferChanged

Bug fixes

  • Resolved a bug where a predominantly white image turned black when changing its bit depth to 1 or converting it to B&W by fixing a threshold issue in the methods ChangeBitDepth() and ConvertToBW().
  • Resolved the file compatibility issue when loading PDF files via drag and drop.
  • Resolved a bug where Dynamsoft.DWT.Unload() was still called even when the web page reload was cancelled.

Barcode Reader Addon

  • Updated to version 9.6.40.

Don't miss a new dwt release

NewReleases is sending notifications on new releases.