Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

All Deprecated Features & APIs

Future deprecation planned

SHA-1 signatures

To comply with Windows security updates, we will deprecate SHA-1 signatures in a future version. The impact is described below (we take 64bit Windows 7 as an example in below screenshots).

If the deprecation is implemented:

  • When you try to install the Dynamsoft Service, you will get the following two error for “Unknown Publisher”.

Deprecation-1

Deprecation-2

  • When you run the ActiveX Edition in IE, you will get a prompt to allow its execution.

Deprecation-3

For more information, check out Preparing for the deprecation of SHA-1 signatures from Microsoft.

The prompts are one-time, once you accept the “risk”, the software will install and run as usual.

The recommended fix is to patch the operating system, you can find the patch here.

17.3

Dynamic Web TWAIN

  • Deleted property: Dynamsoft.DWT.UseDefaultInstallUI

Viewer

[Alternative] Use updateCheckboxStyle and updatePageNumberStyle instead.

  • Viewer.showPageNumber
  • Viewer.showCheckbox
  • thumbnailViewer.showCheckbox
  • thumbnailViewer.showPageNumber

Camera Add-on

[Alternative] Use scanDocument instead.

  • Camera.showVideo()

17.0

Viewer

  • New APIs in v17.0 replace old APIs in v16.2-, all old APIs are deprecated.
v17.0 v16.2-
Viewer.autoChangeIndex Viewer.topPageChanged()

16.2

  • Internet Explorer 8 is no longer supported.

Camera Add-on

  • New APIs in v16.2 replace old APIs in v16.1-, all old APIs are deleted.
v16.2 v16.1-
Addon.Camera.showVideo() Viewer.showVideo()
Addon.Camera.closeVideo() Viewer.closeVideo()
Addon.Camera.off() Viewer.off()
Addon.Camera.on("video-closed") Viewer.on("video-closed")
Addon.Camera.on("video-error") Viewer.on("video-error")

Viewer

  • New APIs in v16.2 replace old APIs in v16.1-, all old APIs are deprecated.
v16.2 v16.1-
Viewer.background BackgroundColor
Viewer.bind() , Viewer.show() , Viewer.hide() BindViewer()
Viewer.cursor MouseShape
Viewer.fitWindow() FitWindowType , IfFitWindow
Viewer.height Height
Viewer.ifAutoScroll IfAutoScroll
Viewer.on("click", callback) RegisterEvent("OnMouseClick", callback)
Viewer.on("contextmenu", callback) RegisterEvent("OnMouseRightClick", callback)
Viewer.on("dblclick", callback) RegisterEvent("OnMouseDoubleClick", callback)
Viewer.on("mousemove", callback) RegisterEvent("OnMouseMove", callback)
Viewer.on("pageAreaSelected", callback) RegisterEvent("OnImageAreaSelected", callback)
Viewer.on("pageAreaUnselected", callback) RegisterEvent("OnImageAreaDeSelected", callback)
Viewer.pageMargin ImageMargin
Viewer.selectedPageBorder SelectionImageBorderColor
Viewer.selectionRectAspectRatio SelectionRectAspectRatio
Viewer.setSelectedAreas() SetSelectedImageArea()
Viewer.showPageNumber ShowPageNumber
Viewer.unbind() UnbindView()
Viewer.width Width
Viewer.zoom Zoom
ViewerEvent.imageX MouseX
ViewerEvent.imageY MouseY

NOTE

ViewerEvent.imageX and ViewerEvent.imageY are only available as the first argument in callback functions for the mouse events “click”, “dblclick”, “contextMenu” and “mousemove”.

  /* Set the size of the viewer */
  DWObject.Viewer.height = 800;
  DWObject.Viewer.width = 600;
  /* Create a thumbnail viewer, note that this viewer can be hidden or disposed */
  var objThumbnailViewer = DWObject.Viewer.createThumbnailViewer(thumbnailViewerSettings);
  objThumbnailViewer.show();
  //objThumbnailViewer.hide();
  //objThumbnailViewer.dispose();
  /* updateViewMode() is used to change only the view mode of the thumbnail viewer */
  objThumbnailViewer.updateViewMode(viewMode: ViewMode);
  /* The following two are used to hook or unhook events to the thumbnail viewer */
  objThumbnailViewer.on()
  objThumbnailViewer.off()
  • ShowImageEditor()

While this method still works, it’s deprecated and the alternative is shown in the code below

  /* The image editor is now created on the fly and can be hidden or disposed */
  var objImageEditor = DWObject.Viewer.createImageEditor(editorSettings);
  objImageEditor.show();
  objImageEditor.hide();
  objImageEditor.dispose();
  • Viewer.bindCustomElement()
  • Viewer.showCustomElement()
  • Viewer.hideCustomElement()
  • Viewer.toggleCustomElement()

As already mentioned, these four methods are removed and the alternative implementation is shown in the code below

  var objCustomElement = DWObject.Viewer.createCustomElement(document.getElementById("divCustomElement"));
  objCustomElement.show();
  objCustomElement.hide();
  objCustomElement.dispose();

16.1.1

TWAIN Capability Negotiation

[Alternative] Use getCapabilities() and setCapabilities() instead.

  • CapGet()
  • CapGetHelp()
  • CapGetCurrent()
  • CapGetDefault()
  • CapGetFrameBottom()
  • CapGetFrameLeft()
  • CapGetFrameRight()
  • CapGetFrameTop()
  • CapGetLabel()
  • CapGetLabels()
  • CapSet()
  • CapReset()
  • CapSetFrame()
  • CapIfSupported()
  • GetCapItems()
  • GetCapItemsString()
  • SetCapItems()
  • SetCapItemsString()
  • Capability
  • CapNumItems
  • CapMaxValue
  • CapMinValue
  • CapCurrentValue
  • CapCurrentIndex
  • CapDefaultValue
  • CapDefaultIndex
  • CapType
  • CapValueType
  • CapStepSize
  • CapValue
  • CapValueString

Buffer Management

[Alternative] Use SelectedImagesIndices, SelectAllImages() and SelectImages() instead.

  • GetSelectedImageIndex()
  • SetSelectedImageIndex
  • SelectedImagesCount

Image Editing

  • AddText()
  • CreateTextFont()
  • OverlayRectangle()

Input and Output

[Alternative] Use new methods like ConvertToBase64(), PDF.Write.Setup()

  • SaveSelectedImagesToBase64Binary()
  • SetCookie()
  • IfOpenImageWithGDIPlus
  • PDFAuthor
  • PDFCompressionType
  • PDFCreationDate
  • PDFCreator
  • PDFKeywords
  • PDFModifiedDate
  • PDFProducer
  • PDFSubject
  • PDFTitle
  • PDFVersion
  • MaxInternetTransferThreads

Viewer

[Alternative] Use methods like Viewer.setViewMode(), Viewer.setViewMode()

  • SetViewMode()
  • SetSelectedImageArea()

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support