dwt 17.2.1 → 17.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +35 -24
  2. package/dist/addon/dbrjs/dbr-8.6.1.full.wasm.js +134 -134
  3. package/dist/addon/dbrjs/dbr-8.6.1.worker.js +113 -113
  4. package/dist/addon/dbrjs/dbr.js +10 -10
  5. package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
  6. package/dist/dist/DynamsoftServiceSetup-mips64el.deb +0 -0
  7. package/dist/dist/DynamsoftServiceSetup.deb +0 -0
  8. package/dist/dist/DynamsoftServiceSetup.msi +0 -0
  9. package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
  10. package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
  11. package/dist/dynamsoft.webtwain.min.js +268 -267
  12. package/dist/dynamsoft.webtwain.min.mjs +270 -269
  13. package/dist/src/dynamsoft.imageio_wasm-1.7.2.js +105 -105
  14. package/dist/src/dynamsoft.lts.js +34 -11
  15. package/dist/src/dynamsoft.pdfReader_wasm-1.7.2.js +80 -80
  16. package/dist/src/dynamsoft.viewer.css +3 -3
  17. package/dist/src/dynamsoft.viewer.js +2 -2
  18. package/dist/src/dynamsoft.webtwain.css +11 -9
  19. package/dist/src/fastcomp/dynamsoft.imageio_wasm-1.7.2.js +105 -105
  20. package/dist/types/Addon.Camera.d.ts +8 -8
  21. package/dist/types/Addon.PDF.d.ts +20 -11
  22. package/dist/types/Dynamsoft.d.ts +6 -6
  23. package/dist/types/WebTwain.Acquire.d.ts +26 -16
  24. package/dist/types/WebTwain.Buffer.d.ts +17 -3
  25. package/dist/types/WebTwain.IO.d.ts +1 -1
  26. package/dist/types/WebTwain.Util.d.ts +1 -1
  27. package/dist/types/WebTwain.Viewer.d.ts +4 -4
  28. package/dist/types/tsconfig.json +0 -1
  29. package/package.json +1 -1
  30. package/samples/1.AcquireImage.html +1 -1
  31. package/samples/10.ScanOrCapture.html +1 -1
  32. package/samples/11.mobilebrowsercapture.html +2 -1
  33. package/samples/2.CustomScan.html +1 -1
  34. package/samples/3.LoadAndSaveImages.html +1 -1
  35. package/samples/4.PDFRasterizer.html +1 -1
  36. package/samples/5.Edit.html +1 -1
  37. package/samples/6.Navigation.html +1 -1
  38. package/samples/7.Thumbnail.html +1 -1
  39. package/samples/8.OCRADocument.html +1 -1
  40. package/samples/9.ReadBarcode.html +1 -1
package/README.md CHANGED
@@ -4,11 +4,12 @@
4
4
  ![jsdelivr](https://img.shields.io/jsdelivr/npm/hm/dwt.svg)
5
5
  ![](https://img.shields.io/snyk/vulnerabilities/npm/dwt.svg)
6
6
 
7
- Cross-platform and cross-browser JavaScript library for web document scanning. Interact with document scanners from Chrome, Firefox and more.
7
+ [Dynamic Web TWAIN](https://www.dynamsoft.com/web-twain/overview/) is a cross-platform scanning SDK designed for web document management applications. With just a few lines of JavaScript code, you can develop robust web applications to scan documents, edit images and save them to file systems. To see it in action, please visit <a href="https://demo.dynamsoft.com/web-twain/" target="_blank">**this online demo**</a>
8
+
9
+ Note: Dynamic Web TWAIN SDK **v17.2.1** is built in this package. For more detail, check the [Version Info](#versions).
8
10
 
9
11
  ## Table of Contents
10
- - [Introduction](#introduction)
11
- - [Online Demo](#online-demo)
12
+ - [Supported Environments](#supported-environments)
12
13
  - [License Key](#license-key)
13
14
  - [Installation](#installation)
14
15
  - [Deployment](#deployment)
@@ -19,9 +20,18 @@ Cross-platform and cross-browser JavaScript library for web document scanning. I
19
20
  - [License Agreement](#license-agreement)
20
21
  - [Versions](#versions)
21
22
 
22
- ## Introduction
23
+ ## Supported Environments
24
+
25
+ ### Supported Image Capturing Devices
26
+ - Physical Document Scanners
27
+ - Desktop Webcam
28
+ - Mobile Camera
23
29
 
24
- [Dynamic Web TWAIN](https://www.dynamsoft.com/web-twain/overview/) is a cross-platform scanning SDK designed for web document management applications. With just a few lines of JavaScript code, you can develop robust web applications to scan documents, edit images and save them to file systems on **Windows**, **Linux** and **macOS**. You can even use your mobile devices running iOS | iPadOS | Android with the library starting in 17.0!
30
+ ### Supported Web Browsers
31
+ - Chrome
32
+ - Firefox
33
+ - Edge
34
+ - Safari
25
35
 
26
36
  ### Supported OSs
27
37
  - Windows
@@ -34,16 +44,6 @@ Cross-platform and cross-browser JavaScript library for web document scanning. I
34
44
  - MIPS64
35
45
  - ARM64
36
46
 
37
- ### Supported Web Browsers
38
- - Firefox
39
- - Edge
40
- - Chrome
41
- - Safari
42
-
43
- ## Online Demo
44
- #### Interact with document scanners from Chrome, Firefox and more
45
- https://demo.dynamsoft.com/web-twain/
46
-
47
47
  ## License Key
48
48
  [![](https://img.shields.io/badge/Get-30--day%20FREE%20Trial%20License-blue)](https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt)
49
49
 
@@ -105,6 +105,7 @@ If you are making use of the `CDN` [jsDelivr](https://cdn.jsdelivr.net/npm/dwt),
105
105
  <script type="text/javascript">
106
106
  Dynamsoft.DWT.ResourcesPath = "dist";
107
107
  Dynamsoft.DWT.ProductKey = 't0140cQMAA...';
108
+ Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
108
109
  </script>
109
110
  </body>
110
111
  </html>
@@ -133,6 +134,7 @@ If you are making use of the `CDN` [jsDelivr](https://cdn.jsdelivr.net/npm/dwt),
133
134
  <script type="text/javascript">
134
135
  Dynamsoft.DWT.ResourcesPath = "dist";
135
136
  Dynamsoft.DWT.ProductKey = 't0140cQMAA...'; // Put your own key here
137
+ Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
136
138
  window.onload = function () {
137
139
  Dynamsoft.DWT.Load();
138
140
  };
@@ -223,23 +225,23 @@ https://www.dynamsoft.com/Products/WebTWAIN_License.aspx
223
225
 
224
226
  >`Dynamsoft Service (DynamsoftService.exe, 64bit)`
225
227
  >
226
- >**v17.2** (build version 1, 7, 2, 1026)
228
+ >**v17.2.1** (build version 1, 7, 2, 0228)
227
229
  >
228
- >`Dynamsoft Service Manager (DWASManager_17201026.dll, 64bit)`
230
+ >`Dynamsoft Service Manager (DWASManager_17210228.dll, 64bit)`
229
231
  >
230
- >**v17.2** (build version 17, 2, 0, 1026)
232
+ >**v17.2.1** (build version 17, 2, 1, 0228)
231
233
  >
232
- >`Dynamic Web TWAIN (dwt_17.2.0.1026.dll, 64bit)`
234
+ >`Dynamic Web TWAIN (dwt_17.2.1.0228.dll, 64bit)`
233
235
  >
234
- >**v17.2** (build version 17, 2, 0, 1026)
236
+ >**v17.2.1** (build version 17, 2, 1, 0228)
235
237
  >
236
238
  >`Dynamsoft PDF Rasterizer (DynamicPdfRx64_11.3.0.1026.dll, 64bit)`
237
239
  >
238
- >**v17.2** (build version 11, 3, 0, 1026)
240
+ >**v17.2.1** (build version 11, 3, 0, 1026)
239
241
  >
240
242
  >`Dynamsoft OCR Basic Engine (DynamicOCRx64_10.0.0.0618.dll, 64bit)`
241
243
  >
242
- >**v17.2** (build version 10, 0, 0, 0618)
244
+ >**v17.2.1** (build version 10, 0, 0, 0618)
243
245
  >
244
246
  >`Dynamsoft Barcode Reader (dbrx64_8.6.0.1026.dll, 64bit)`
245
247
  >
@@ -247,12 +249,21 @@ https://www.dynamsoft.com/Products/WebTWAIN_License.aspx
247
249
  >
248
250
  >`Dynamsoft Webcam Addon (DynamicWebcamx64_15.0.0.0625.dll, 64bit)`
249
251
  >
250
- >**v17.2** (build version 15, 0, 0, 0625)
252
+ >**v17.2.1** (build version 15, 0, 0, 0625)
251
253
  >
252
254
  >`Dynamsoft Upload Module (UploadModule_1.7.2.1026.dll, 64bit)`
253
255
  >
254
- >**v17.2** (build version 1, 7, 2, 1026)
256
+ >**v17.2.1** (build version 1, 7, 2, 1026)
255
257
 
256
258
  ## Changelog
257
259
 
258
260
  Check out the [release notes](https://www.dynamsoft.com/web-twain/docs/info/schedule/stable.html?product=dwt&utm_source=npm) of the Dynamic Web TWAIN library.
261
+
262
+
263
+ **Note**
264
+
265
+ If you are upgrading from the old versions to V17.1+, please add the following code after Dynamsoft.DWT.ProductKey to make [Dynamsoft.DWT.Load](https://www.dynamsoft.com/web-twain/docs/info/api/Dynamsoft_WebTwainEnv.html#load) take effect.
266
+
267
+ > Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
268
+
269
+ Otherwise, the initialization will fail.