Skip to content

Releases: Dynamsoft/document-scanner-javascript

v1.2.0

30 Apr 22:30
Compare
Choose a tag to compare

Release Notes

SDK

[Features]

  • DocumentScanner configuration options
    • ScannerViewConfig
      • enableAutoCropMode?: boolean; // False by default
      • enableSmartCaptureMode?: boolean; // False by default
      • showSubfooter: Toggle showing the subfooter container that allows users to toggle scan modes (Detect border, Smart capture, Auto crop). true by default
      • showPoweredByDynamsoft: Toggle showing Powered by Dynamsoft message on the scanner view. true by default
      • minVerifiedFramesForAutoCapture: Change the minimum verified frames to auto capture the document. 2 frames are needed by default. Lower this number to make the capture faster (this could have an effect on accuracy/quality of image scanned).
      • scanRegion: allows users to set a scan region while scanning a document
export interface ScanRegion {
  ratio: {
    width: number;
    height: number;
  }; // Ratio of the scan region
  regionBottomMargin: number; // Bottom margin calculated in pixel. This will "push" the scan region upwards
  style: {
    strokeWidth: number; // width of the scan region border
    strokeColor: string; // color of the scan region border
  }; 
}
  • Added Re-take button in Correction View. this will allow users to retake/rescan the document through the correction view.
  • Provide landscape support for the Document Scanner View (implemented indocument-scanner.ui.html)
  • Template optimization: Updated scaleDownThreshold to 1000
  • Allow launch() with a static image. A sample is provided under sample/scenarios/use-file-input.html
  • Set the default resolution when opening camera to 2K resolution

[Fixes]

  • Enable OutputOriginalImage on the template by default. Before, it required us to enable it manually if we use a custom template.
  • Set engineResourcePaths before initLicense to prevent a bug when a user implements a custom engineResourcePath.
  • Update trial license banner link to lead to https://www.dynamsoft.com/customer/license/trialLicense?product=mwc&deploymenttype=web

Docs

  • Version update from 1.1.1 to 1.2.0
  • Added docs on the new properties in DocumentScannerConfig

v1.2.0-beta-1745342777464

29 Apr 02:14
Compare
Choose a tag to compare
Pre-release

Release Notes

SDK

[Features]

  • DocumentScanner configuration options
    • ScannerViewConfig
      • enableAutoCropMode?: boolean; // False by default
      • enableSmartCaptureMode?: boolean; // False by default
      • showSubfooter: Toggle showing the subfooter container that allows users to toggle scan modes (Detect border, Smart capture, Auto crop). true by default
      • showPoweredByDynamsoft: Toggle showing Powered by Dynamsoft message on the scanner view. true by default
      • minVerifiedFramesForAutoCapture: Change the minimum verified frames to auto capture the document. 2 frames are needed by default. Lower this number to make the capture faster (this could have an effect on accuracy/quality of image scanned).
      • scanRegion: allows users to set a scan region while scanning a document
export interface ScanRegion {
  ratio: {
    width: number;
    height: number;
  }; // Ratio of the scan region
  regionBottomMargin: number; // Bottom margin calculated in pixel. This will "push" the scan region upwards
  style: {
    strokeWidth: number; // width of the scan region border
    strokeColor: string; // color of the scan region border
  }; 
}
  • Added Re-take button in Correction View. this will allow users to retake/rescan the document through the correction view.
  • Provide landscape support for the Document Scanner View (implemented indocument-scanner.ui.html)
  • Template optimization: Updated scaleDownThreshold to 1100
  • Allow launch() with a static image. A sample is provided under sample/scenarios/use-file-input.html

[Fixes]

  • Enable OutputOriginalImage on the template by default. Before, it required us to enable it manually if we use a custom template.
  • Set engineResourcePaths before initLicense to prevent a bug when a user implements a custom engineResourcePath.
  • Update trial license banner link to lead to https://www.dynamsoft.com/customer/license/trialLicense?product=mwc&deploymenttype=web

Docs

  • Version update from 1.1.1 to 1.2.0-beta...
  • Added docs on the new properties in DocumentScannerConfig [TODO]

v1.1.1

08 Feb 04:48
9a9508c
Compare
Choose a tag to compare

Release Notes

SDK

[Fixes]

  • Fixed icon not showing up on Firefox mobile

Docs

  • Version update from 1.1.0 to 1.1.1

v1.1.0

08 Feb 02:58
f107f76
Compare
Choose a tag to compare

Release Notes

SDK

[Features]

  • DocumentScanner configuration options
    • View Control
      • showCorrectionView: Toggle correction view visibility and workflow
      • showResultView: Togle result view visibility and workflow
      • UI Changes
        • Hidden DocumentCorrectionView -> Smart Capture button hidden on DocumentScannerView
        • Hidden DocumentResultView -> Apply changes to Done in DocumentCorrectionView
    • Resource Configuration
      • engineResourcePaths: to configure DCV engine resources
      • templateFilePath: set template file location
  • Added EnumDDSViews enum (Scanner/Result/Correction)

[Fixes]

  • Fixed button state issues with hidden views
  • Fixed container type flexibility in DocumentScannerViewConfig

Docs

  • Version update from 1.0.3 to 1.1.0
  • Added docs on the new properties in DocumentScannerConfig
  • Change on Workflow customization

v1.0.3

08 Feb 02:58
Compare
Choose a tag to compare

Release Notes [Patch for v1.0.2]

SDK

[Fixes]

  • Fixed missing devDependency in package.json

Docs

  • Version update from 1.0.2 to 1.0.3

v1.0.2

06 Feb 00:27
b08e0a8
Compare
Choose a tag to compare

Release Notes

SDK

[BREAKING CHANGES]

  • Renamed ScanResultView to DocumentResultView.
  • Renamed DocumentScanResult to DocumentResult.
  • Renamed scanResultViewConfig to resultViewConfig.
  • Renamed ControlButton to ToolbarConfig.
  • Changed text property for toolbar buttons to label.

[Features]

  • Added support for <img> tags on toolbar icons.
  • Updated the Share PNG icon to match other products.
  • Added an upload button when users specify the onUpload function.

[Fixes]

  • Fixed an issue where importing an image larger than the canvas dimensions caused the detected border to be positioned incorrectly. This was due to scaleDown not working properly.

Samples

[Features]

  • Added a rotate message on /demo.html to handle landscape mode.

[Fixes]

  • Fixed an issue where the camera and resolution outline logic would break when transitioning from the Demo Camera to the Live Camera.

Docs

  • Significantly updated the README and User Guide, including a link to the demo.

Built-in Server

  • Changed the configuration to allow showcasing the "Upload" feature.
  • Added URLs to specific pages when running npm run serve.

v1.0.1

28 Jan 00:13
Compare
Choose a tag to compare
feat: release v1.0.1

v1.0.0

28 Jan 00:12
Compare
Choose a tag to compare
mend