Skip to content

Commit f8dce83

Browse files
committed
feat: release v2.1.0
1 parent 69238e4 commit f8dce83

File tree

8 files changed

+53
-53
lines changed

8 files changed

+53
-53
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ The simplest way to include the SDK is to use either the [**jsDelivr**](https://
3131
- jsDelivr
3232

3333
```html
34-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@2.0.0/dist/mrz-scanner.bundle.js"></script>
34+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@2.1.0/dist/mrz-scanner.bundle.js"></script>
3535
```
3636

3737
- UNPKG
3838

3939
```html
40-
<script src="https://unpkg.com/dynamsoft-mrz-scanner@2.0.0/dist/mrz-scanner.bundle.js"></script>
40+
<script src="https://unpkg.com/dynamsoft-mrz-scanner@2.1.0/dist/mrz-scanner.bundle.js"></script>
4141
```
4242

4343
When using a framework such as **React**, **Vue** or **Angular**, we recommend adding the package as a dependency using a package manager such as **npm** or **yarn**:
4444

4545
```sh
46-
npm i dynamsoft-mrz-scanner@2.0.0 -E
46+
npm i dynamsoft-mrz-scanner@2.1.0 -E
4747
# or
48-
yarn add dynamsoft-mrz-scanner@2.0.0 -E
48+
yarn add dynamsoft-mrz-scanner@2.1.0 -E
4949
```
5050

5151
> [!WARNING]
@@ -60,7 +60,7 @@ Below is the complete Hello World sample page that uses the precompiled script s
6060
<meta charset="utf-8" />
6161
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6262
<title>Dynamsoft MRZ Scanner - Hello World</title>
63-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@2.0.0/dist/mrz-scanner.bundle.js"></script>
63+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-mrz-scanner@2.1.0/dist/mrz-scanner.bundle.js"></script>
6464
</head>
6565

6666
<body>
@@ -139,7 +139,7 @@ Let's now go through the code of the Hello World sample and understand the purpo
139139
<meta charset="utf-8" />
140140
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
141141
<title>Dynamsoft MRZ Scanner - Hello World</title>
142-
<script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-0514202502/dist/mrz-scanner.bundle.js"></script>
142+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script>
143143
</head>
144144
145145
<body>
@@ -212,6 +212,13 @@ Here is a quick breakdown of the UI elements that make up the result view
212212

213213
4. **Done Button**: Clicking this button basically closes the scanner and destroys the **MRZScanner** instance. At that point, the application will go back to the landing page, but the developer can dictate the action to take once this button is clicked. These actions can include allowing the user to perform some extra actions with the MRZ result, or navigating to another page, or really anything that the developer would like to do once the scanning operation is done.
214214

215-
>Note:
216-
>
217-
> In the Hello World sample, no action is taken once the Done button is clicked. The scanner closes and the user is met with an empty page. In order to open the scanner again, the user must refresh the page. However, this action can be changed according to the developer's wishes as indicated above.
215+
> [!NOTE]
216+
> In the Hello World sample, no action is taken once the Done button is clicked. The scanner closes and the user is met with an empty page. In order to open the scanner again, the user must refresh the page. You may choose to implement a more user-friendly behavior in a production environment, such as presenting the user with an option to re-open the MRZ Scanner upon closing it.
217+
218+
219+
## Next Steps
220+
221+
Now that you got the most basic functionality of the MRZ Scanner up and running, it's time to explore the many ways in which the MRZ Scanner can be used, including customization and the ability to read directly from static images and PDFs. To learn more about those two topics, please visit the following articles
222+
223+
- [Customizing the MRZ Scanner](https://www.dynamsoft.com/mrz-scanner/docs/web/guides/mrz-scanner-customization.html)
224+
- [Setting up the MRZ Scanner for Static Images and PDFs](https://www.dynamsoft.com/mrz-scanner/docs/web/guides/mrz-scanner-static-image.html)

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamsoft-mrz-scanner",
3-
"version": "2.1.0-beta-0514202502",
3+
"version": "2.1.0",
44
"description": "Dynamsoft MRZ Scanner JavaScript Edition is a ready-to-use SDK for web applications that accurately recognizes and parses Machine-Readable Zones on Machine-Readable Travel Documents.",
55
"files": [
66
"/dist",

samples/demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Dynamsoft MRZ Scanner</title>
77
<link rel="stylesheet" href="./css/index.css" />
8-
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-0514202502/dist/mrz-scanner.bundle.js"></script> -->
8+
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script> -->
99
<!-- To use locally: -->
1010
<script src="../../dist/mrz-scanner.bundle.js"></script>
1111
</head>

samples/dwt-mrz/Resources/dynamsoft.webtwain.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Dynamsoft JavaScript Library for Basic Initiation of Dynamic Web TWAIN
33
// More info on Dynamic Web TWAIN: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx
44
//
5-
// Copyright 2025, Dynamsoft Corporation
5+
// Copyright 2025, Dynamsoft Corporation
66
// Author: Dynamsoft Team
77
// Version: 19.0
88
//
@@ -12,7 +12,7 @@ var Dynamsoft = Dynamsoft || { DWT: {} };
1212
///
1313
Dynamsoft.DWT.AutoLoad = true;
1414
///
15-
Dynamsoft.DWT.Containers = [{ WebTwainId: '', ContainerId: 'dwtcontrolContainer', Width: 350, Height: 380 }];
15+
Dynamsoft.DWT.Containers = [{ WebTwainId: "", ContainerId: "dwtcontrolContainer", Width: 350, Height: 380 }];
1616

1717
/////////////////////////////////////////////////////////////////////////////////////
1818
// WARNING: The productKey in this file is protected by copyright law //
@@ -22,10 +22,10 @@ Dynamsoft.DWT.Containers = [{ WebTwainId: '', ContainerId: 'dwtcontrolContainer'
2222
// extent possible under the law. Further, you may not reverse engineer, //
2323
// decompile, disassemble, or modify the productKey . //
2424
/////////////////////////////////////////////////////////////////////////////////////
25-
/// If you need to use multiple keys on the same server, you can combine keys and write like this
25+
/// If you need to use multiple keys on the same server, you can combine keys and write like this
2626
/// Dynamsoft.DWT.ProductKey = 'key1;key2;key3';
2727
/// To get a free trial, please visit https://www.dynamsoft.com/customer/license/trialLicense?product=dwt&utm_source=installer.
28-
Dynamsoft.DWT.ProductKey = 't0114NwEAADXUFBxK4hY3NKFp4gOnxH3twvk6g+kyrTsASXPZy50VDZYZSUHapiiH+Gsmx3IHYbcziGR9GFQmWKSgKs7AUZvnggNbY+kLGFcRcH0BYQ4uUeeqAJZvZm0aPx9/PB7LYGzqDBkjnDhR1B1tYD2t';
28+
Dynamsoft.DWT.ProductKey = "YOUR_DWT_LICENSE_KEY";
2929

3030
///
3131
//Dynamsoft.DWT.ResourcesPath = 'Resources';
@@ -130,9 +130,7 @@ Dynamsoft.DWT.IfConfineMaskWithinTheViewer = true;
130130
}
131131
};*/
132132

133-
134133
/// All callbacks are defined in the dynamsoft.webtwain.install.js file, you can customize them.
135134
// Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', function(){
136135
// // webtwain has been inited
137136
// });
138-

samples/dwt-mrz/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030

3131
async function initializeMRZ() {
3232
// Inialize License Key
33-
Dynamsoft.License.LicenseManager.initLicense(
34-
"DLS2eyJoYW5kc2hha2VDb2RlIjoiMzE0NTQwLVRYbFhaV0pRY205cSIsIm1haW5TZXJ2ZXJVUkwiOiJodHRwczovL21sdHMuZHluYW1zb2Z0LmNvbSIsIm9yZ2FuaXphdGlvbklEIjoiMzE0NTQwIiwic3RhbmRieVNlcnZlclVSTCI6Imh0dHBzOi8vc2x0cy5keW5hbXNvZnQuY29tIiwiY2hlY2tDb2RlIjoxOTY5OTM3NTcyfQ=="
35-
);
33+
Dynamsoft.License.LicenseManager.initLicense("YOUR_LICENSE_KEY_HERE");
3634

3735
// Load MRZ Resources
3836
Dynamsoft.Core.CoreModule.loadWasm(["DLR", "DCP"]);

samples/hello-world.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Dynamsoft MRZ Scanner - Hello World</title>
7-
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-0514202502/dist/mrz-scanner.bundle.js"></script> -->
7+
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script> -->
88
<!-- To use locally: -->
99
<script src="../dist/mrz-scanner.bundle.js"></script>
1010
</head>
@@ -22,9 +22,6 @@ <h1 style="font-size: large">Dynamsoft MRZ Scanner</h1>
2222
// Initialize the Dynamsoft MRZ Scanner
2323
const mrzscanner = new Dynamsoft.MRZScanner({
2424
license: "YOUR_LICENSE_KEY_HERE",
25-
scannerViewConfig: {
26-
cameraEnhancerUIPath: "../dist/mrz-scanner.ui.html",
27-
},
2825
});
2926

3027
(async () => {

samples/scenarios/use-file-input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Dynamsoft MRZ Scanner - Use File Input</title>
7-
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]-beta-0514202502/dist/mrz-scanner.bundle.js"></script> -->
7+
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mrz-scanner.bundle.js"></script> -->
88
<!-- To use locally: -->
99
<script src="../../dist/mrz-scanner.bundle.js"></script>
1010

0 commit comments

Comments
 (0)