Releases: Dynamsoft/document-scanner-javascript
Releases · Dynamsoft/document-scanner-javascript
v1.2.0
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 defaultshowPoweredByDynamsoft
: Toggle showingPowered by Dynamsoft
message on the scanner view.true
by defaultminVerifiedFramesForAutoCapture
: 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
- ScannerViewConfig
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 in
document-scanner.ui.html
) - Template optimization: Updated
scaleDownThreshold
to1000
- Allow
launch()
with a static image. A sample is provided undersample/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
beforeinitLicense
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
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 defaultshowPoweredByDynamsoft
: Toggle showingPowered by Dynamsoft
message on the scanner view.true
by defaultminVerifiedFramesForAutoCapture
: 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
- ScannerViewConfig
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 in
document-scanner.ui.html
) - Template optimization: Updated
scaleDownThreshold
to1100
- Allow
launch()
with a static image. A sample is provided undersample/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
beforeinitLicense
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
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
Release Notes
SDK
[Features]
DocumentScanner
configuration options- View Control
showCorrectionView
: Toggle correction view visibility and workflowshowResultView
: Togle result view visibility and workflow- UI Changes
- Hidden
DocumentCorrectionView
->Smart Capture
button hidden onDocumentScannerView
- Hidden
DocumentResultView
->Apply
changes toDone
inDocumentCorrectionView
- Hidden
- Resource Configuration
engineResourcePaths
: to configure DCV engine resourcestemplateFilePath
: set template file location
- View Control
- Added
EnumDDSViews
enum (Scanner/Result/Correction)
[Fixes]
- Fixed button state issues with hidden views
- Fixed
container
type flexibility inDocumentScannerViewConfig
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
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
Release Notes
SDK
[BREAKING CHANGES]
- Renamed
ScanResultView
toDocumentResultView
. - Renamed
DocumentScanResult
toDocumentResult
. - Renamed
scanResultViewConfig
toresultViewConfig
. - Renamed
ControlButton
toToolbarConfig
. - Changed
text
property for toolbar buttons tolabel
.
[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
feat: release v1.0.1
v1.0.0
mend