dwt 17.3.1 → 18.1.0

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 (53) hide show
  1. package/LICENSE.txt +2 -2
  2. package/README.md +25 -32
  3. package/dist/dist/DynamsoftServiceSetup-arm64.deb +0 -0
  4. package/dist/dist/DynamsoftServiceSetup.deb +0 -0
  5. package/dist/dist/DynamsoftServiceSetup.msi +0 -0
  6. package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
  7. package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
  8. package/dist/dynamsoft.webtwain.min.js +159 -97
  9. package/dist/dynamsoft.webtwain.min.mjs +254 -192
  10. package/dist/src/dynamsoft.lts.js +19 -41
  11. package/dist/src/dynamsoft.viewer.css +1 -1
  12. package/dist/src/dynamsoft.viewer.js +1 -1
  13. package/dist/src/dynamsoft.webtwain.css +43 -21
  14. package/dist/types/Dynamsoft.Enum.d.ts +14 -0
  15. package/dist/types/Dynamsoft.d.ts +85 -6
  16. package/dist/types/WebTwain.Acquire.d.ts +37 -3
  17. package/dist/types/WebTwain.Viewer.d.ts +21 -31
  18. package/dist/types/WebTwain.d.ts +0 -2
  19. package/package.json +2 -2
  20. package/dist/addon/dbrjs/dbr-8.8.7.full.wasm +0 -0
  21. package/dist/addon/dbrjs/dbr-8.8.7.full.wasm.js +0 -285
  22. package/dist/addon/dbrjs/dbr-8.8.7.worker.js +0 -113
  23. package/dist/addon/dbrjs/dbr.js +0 -22
  24. package/dist/addon/dynamsoft.webtwain.addon.camera.css +0 -7
  25. package/dist/dist/DynamsoftServiceSetup-mips64el.deb +0 -0
  26. package/dist/src/dynamsoft.crypto-1.7.3.wasm +0 -0
  27. package/dist/src/dynamsoft.imageProc-1.7.3.wasm +0 -0
  28. package/dist/src/dynamsoft.imageProc-sn-1.7.3.wasm +0 -0
  29. package/dist/src/dynamsoft.imagecore-1.7.3.wasm +0 -0
  30. package/dist/src/dynamsoft.imageio-1.7.3.wasm +0 -0
  31. package/dist/src/dynamsoft.imageio_wasm-1.7.3.js +0 -34
  32. package/dist/src/dynamsoft.pdfReader-1.7.3.wasm +0 -0
  33. package/dist/src/dynamsoft.pdfReader_wasm-1.7.3.js +0 -34
  34. package/dist/src/dynamsoft.pdfWriter-1.7.3.wasm +0 -0
  35. package/dist/src/fastcomp/dynamsoft.crypto-1.7.3.wasm +0 -0
  36. package/dist/src/fastcomp/dynamsoft.imageProc-1.7.3.wasm +0 -0
  37. package/dist/src/fastcomp/dynamsoft.imagecore-1.7.3.wasm +0 -0
  38. package/dist/src/fastcomp/dynamsoft.imageio-1.7.3.wasm +0 -0
  39. package/dist/src/fastcomp/dynamsoft.imageio_wasm-1.7.3.js +0 -34
  40. package/dist/src/fastcomp/dynamsoft.pdfWriter-1.7.3.wasm +0 -0
  41. package/dist/types/Addon.Camera.d.ts +0 -283
  42. package/samples/AcquireImage.html +0 -69
  43. package/samples/CustomScan.html +0 -98
  44. package/samples/Dynamic Web TWAIN Online Demo.html +0 -8
  45. package/samples/Dynamic Web TWAIN Sample Code Gallery.html +0 -8
  46. package/samples/Edit.html +0 -111
  47. package/samples/LoadAndSaveImages.html +0 -103
  48. package/samples/Navigation.html +0 -197
  49. package/samples/PDFRasterizer.html +0 -88
  50. package/samples/ReadBarcode.html +0 -231
  51. package/samples/ScanOrCapture.html +0 -202
  52. package/samples/Thumbnail.html +0 -88
  53. package/samples/mobilebrowsercapture.html +0 -13
package/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Dynamic Web TWAIN License Agreement (EULA)
2
- Revision date: 06/30/2022
2
+ Revision date: 12/22/2022
3
3
  IMPORTANT - READ CAREFULLY: THIS IS A LEGAL AGREEMENT BETWEEN YOU AND DYNAMSOFT CORPORATION, FOR THE DYNAMSOFT SOFTWARE AND ANY ACCOMPANYING ONLINE OR ELECTRONIC DOCUMENTATION ("SOFTWARE"). BEFORE CONTINUING WITH THE INSTALLATION OF THE SOFTWARE, YOU MUST READ, ACKNOWLEDGE AND ACCEPT THE TERMS AND CONDITIONS OF THE SOFTWARE LICENSE AGREEMENT THAT FOLLOWS ("AGREEMENT"). IF YOU DO NOT ACCEPT THE TERMS AND CONDITIONS OF THE AGREEMENT, DO NOT CLICK AN "AGREE" OR SIMILAR BUTTON AND DO NOT INSTALL OR USE THE SOFTWARE.
4
4
  1. DEFINITIONS
5
5
  "Application" means an end user program that the Licensee develops using the Software and into which the Redistributables are incorporated, and which contain significant additional functionality over and above the functionality contained in the Software. Read what is counted as a single application to learn more.
@@ -52,6 +52,6 @@ NO LIABILITY FOR CONSEQUENTIAL DAMAGES. UNDER NO CIRCUMSTANCE SHALL DYNAMSOFT BE
52
52
  8. CONFLICT OR INCONSISTENCY
53
53
  Unless expressly agreed otherwise, in the event of any conflict or inconsistency between the terms and conditions of this Agreement and any terms or conditions set forth in any purchase order or other document relating to the transactions contemplated by this Agreement, the terms and conditions set forth in this Agreement shall prevail.
54
54
  9. APPLICABLE LAWS
55
- This Agreement shall be governed by the laws of the Province of British Columbia and the federal laws of Canada applicable therein. Any disputes pertaining to this Agreement requiring judicial action will only take place in the Province of British Columbia, Canada.
55
+ This Agreement shall be construed, and the legal relations between the parties hereto shall be determined as follows: (a) If Licensee's head office is located in the United States, in accordance with the laws of the State of Delaware, and the federal laws of the United States; or (b) If Licensee's head office is located anywhere in the world except the United States, in accordance with the laws of the Province of British Columbia and the federal laws of Canada applicable therein; and (c) The United Nations Convention on Contracts for the International Sale of Goods and any conflicts of law principles and the Uniform Computer Information Transactions Act (where enacted) shall not apply to the Agreement. Any disputes pertaining to this Agreement requiring judicial action will only take place in the Province of British Columbia, Canada.
56
56
  10. BUSINESS PRACTICES
57
57
  The Licensee shall (a) comply with all applicable laws and regulations, including all import and export laws and all anti-bribery laws, (b) avoid deceptive, misleading or unethical practices, and (c) conduct business in a manner that always reflects favorably on the Dynamsoft Products and Dynamsoft's goodwill and reputation, and (d) promptly notify Dynamsoft of any complaint or adverse claim about the Software of which Licensee becomes aware.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
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
8
 
9
- Note: Dynamic Web TWAIN SDK **v17.3** is built in this package. For more detail, check the [Version Info](#versions).
9
+ Note: Dynamic Web TWAIN SDK **v18.1** is built in this package. For more detail, check the [Version Info](#versions).
10
10
 
11
11
  ## Table of Contents
12
12
  - [Supported Environments](#supported-environments)
@@ -145,23 +145,16 @@ If you are making use of the `CDN` [jsDelivr](https://cdn.jsdelivr.net/npm/dwt),
145
145
  }
146
146
  function AcquireImage() {
147
147
  if (DWObject) {
148
- DWObject.SelectSource(function () {
149
- DWObject.OpenSource();
150
- DWObject.AcquireImage(
151
- {
152
- PixelType: Dynamsoft.EnumDWT_PixelType.TWPT_RGB,
153
- Resolution: 200,
154
- IfDisableSourceAfterAcquire: true
155
- },
156
- function () {
157
- console.log("Successful!");
158
- },
159
- function (settings, errCode, errString) {
160
- alert(errString)
161
- }
162
- );
163
- }, function () {
164
- alert('SelectSource failed!');
148
+ DWObject.SelectSourceAsync().then(function(){
149
+ return DWObject.AcquireImageAsync({
150
+ PixelType: Dynamsoft.DWT.EnumDWT_PixelType.TWPT_RGB,
151
+ Resolution: 200,
152
+ IfDisableSourceAfterAcquire: true
153
+ });
154
+ }).then(function(){
155
+ return DWObject.CloseSourceAsync();
156
+ }).catch(function (exp) {
157
+ alert(exp.message);
165
158
  });
166
159
  }
167
160
  }
@@ -225,35 +218,35 @@ https://www.dynamsoft.com/Products/WebTWAIN_License.aspx
225
218
 
226
219
  >`Dynamsoft Service (DynamsoftService.exe, 64bit)`
227
220
  >
228
- >**v17.3** (build version 1, 7, 3, 0531)
221
+ >**v18.0** (build version 1, 8, 0, 1025)
229
222
  >
230
- >`Dynamsoft Service Manager (DWASManager_17300531.dll, 64bit)`
223
+ >`Dynamsoft Service Manager (DWASManager_18001025.dll, 64bit)`
231
224
  >
232
- >**v17.3** (build version 17, 3, 0, 0531)
225
+ >**v18.0** (build version 18, 0, 0, 1025)
233
226
  >
234
- >`Dynamic Web TWAIN (dwt_17.3.0.0531.dll, 64bit)`
227
+ >`Device Manager (DeviceManager_18001025.dll, 64bit)`
235
228
  >
236
- >**v17.3** (build version 17, 3, 0, 0531)
229
+ >**v18.0** (build version 18, 0, 0, 1025)
237
230
  >
238
- >`Dynamsoft PDF Rasterizer (DynamicPdfRx64_11.4.0.0531.dll, 64bit)`
231
+ >`Dynamic Web TWAIN (dwt_18.0.0.1025.dll, 64bit)`
239
232
  >
240
- >**v17.3** (build version 11, 4, 0, 0531)
233
+ >**v18.0** (build version 18, 0, 0, 1025)
241
234
  >
242
- >`Dynamsoft OCR Basic Engine (DynamicOCRx64_10.0.0.0618.dll, 64bit)`
235
+ >`Dynamsoft PDF Rasterizer (DynamicPdfRx64_11.4.1.1025.dll, 64bit)`
243
236
  >
244
- >**v17.3** (build version 10, 0, 0, 0618)
237
+ >**v18.0** (build version 11, 4, 1, 1025)
245
238
  >
246
- >`Dynamsoft Barcode Reader (dbrx64_8.8.0.0531.dll, 64bit)`
239
+ >`Dynamsoft Barcode Reader (dbrx64_9.4.0.1025.dll, 64bit)`
247
240
  >
248
- >**v8.8.0** (build version 8, 8, 0, 0531)
241
+ >**v9.4.0** (build version 9, 4, 0, 0823)
249
242
  >
250
243
  >`Dynamsoft Webcam Addon (DynamicWebcamx64_15.0.0.0625.dll, 64bit)`
251
244
  >
252
- >**v17.3** (build version 15, 0, 0, 0625)
245
+ >**v18.0** (build version 15, 0, 0, 0625)
253
246
  >
254
- >`Dynamsoft Upload Module (UploadModule_1.7.2.1026.dll, 64bit)`
247
+ >`Dynamsoft Upload Module (UploadModule_1.8.0.1025.dll, 64bit)`
255
248
  >
256
- >**v17.3** (build version 1, 7, 2, 1026)
249
+ >**v18.0** (build version 1, 8, 0, 1025)
257
250
 
258
251
  ## Changelog
259
252
 
Binary file
Binary file
Binary file
Binary file