From 25780df2556097fe614dd490145bc7caef04b098 Mon Sep 17 00:00:00 2001 From: Judy Date: Mon, 28 Mar 2022 12:09:08 -0700 Subject: [PATCH 1/3] Update Stable.md v17.2.5 added --- info/schedule/Stable.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/info/schedule/Stable.md b/info/schedule/Stable.md index 934ffc58..c46c12c2 100644 --- a/info/schedule/Stable.md +++ b/info/schedule/Stable.md @@ -10,6 +10,16 @@ description: Dynamic Web TWAIN SDK Documentation Schedule Stable Release Page # Stable Releases +## 17.2.5 (03/29/2022) + +### Improved Features + + - Updated the files *dynamsoft.webtwain.initiate.js* and *dynamsoft.webtwain.addon.camera.js* for better performance of mobile document capturing when using Safari on iOS/iPadOS 13+ + +### Bug Fixed + + - Updated the file *dynamsoft.webtwain.initiate.js* to resolve a memory leak issue in v17.2.1 on Chrome 98+ when the view mode is set to (-1, -1) or if a thumbnail viewer is used. + ## 17.2.1 (02/24/2022) ### Improved Features @@ -17,7 +27,7 @@ description: Dynamic Web TWAIN SDK Documentation Schedule Stable Release Page - Made changes to handle CORS preflight requests sent by Chrome from V98. Learn more here. - For Chromium V84+, use userAgentData instead of userAgent in response to UserAgent String phasing out issue. -### Bug Fixed +### Bug Fixes - Fixed a bug where Dynamsoft Service installation/uninstallation failed due to the current user account does not match the user account under C:\Users{account}. Learn more here. - [HTML5 on MacOS] Fixed a bug where the short key (set by organizationID) did not work on macOS 12+. @@ -59,7 +69,7 @@ description: Dynamic Web TWAIN SDK Documentation Schedule Stable Release Page * Modified DynamicImage.dll(DynamicImagex64.dll) to improve encoding and decoding mode of TIFF files. * Updated Barcode Reader library to version 8.6. Check out the release notes for Barcode Reader JavaScript SDK - 8.6 -### Bug Fixed +### Bug Fixes * Fixed a bug where the image displayed in the thumbnail may be inconsistent with that on the canvas when switching tags through `FilterImageByTag`. * Fixed a bug that Dynamic Web TWAIN object could not be initialized when using iframe in Edge. From 5cfe19bb25b6f9199e0a9a15445e1d347cb043e8 Mon Sep 17 00:00:00 2001 From: Judy Date: Mon, 28 Mar 2022 13:02:37 -0700 Subject: [PATCH 2/3] Update WebTwain_Buffer.md rewriting using category for clarity --- info/api/WebTwain_Buffer.md | 45 +++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/info/api/WebTwain_Buffer.md b/info/api/WebTwain_Buffer.md index 533de190..7de3a609 100644 --- a/info/api/WebTwain_Buffer.md +++ b/info/api/WebTwain_Buffer.md @@ -2262,7 +2262,7 @@ Pair: [from: number, to: number]; ```typescript /** - * Return the tag of a specified image. + * Return the tag(s) of a specified image. * @argument index Index of the image. */ GetTagListByIndex(index: number):string[] @@ -2312,10 +2312,10 @@ DWObject.GetTagListByIndex(0); ```typescript /** - * Create a file folder for image(s). - * @argument filename Specify the file name. + * Create a category for the scanned image(s). + * @argument categoryName Specify the category name. */ -CreateFile(filename:string):Boolean; +CreateFile(categoryName:string):Boolean; ``` **Availability** @@ -2351,9 +2351,9 @@ CreateFile(filename:string):Boolean; **Example** ```javascript -//the image you scanned will belong to File1. -DWObject.CreateFile("File1"); -DWObject.OpenFile("File1"); //Need to call OpenFile after CreateFile. +//Store the scanned image(s) under 'Category1'. +DWObject.CreateFile("Category1"); +DWObject.OpenFile("Category1"); //Need to call OpenFile after CreateFile. DWObject.AcquireImage(successCallback, failureCallback); function successCallback() { @@ -2367,8 +2367,8 @@ function failureCallback(errorCode, errorString) { **Usage notes** -1. If the documents have been sorted before scanning, you can use CreateFile, OpenFile to manage each type of document. -2. If the documents are out of order before scanning and you want to scan them in first and then sort them, use tags to manage the documents. Relevant APIs: SetDefaultTag, TagImages, GetTagList, FilterImagesByTag +1. If the documents are already sorted before scanning, you can use CreateFile, OpenFile to group the documents. +2. If the documents are not already sorted before scanning and you want to first scan, then sort, you can use tags to manage that. Relevant APIs: SetDefaultTag, TagImages, GetTagList, FilterImagesByTag --- @@ -2378,10 +2378,10 @@ function failureCallback(errorCode, errorString) { ```typescript /** - * Open the specified file folder. - * @argument filename Specify the file name. + * Use the specified category for the scanned image(s) + * @argument categoryName Specify the category name. */ -OpenFile(filename:string):Boolean; +OpenFile(categoryName:string):Boolean; ``` **Availability** @@ -2417,10 +2417,11 @@ OpenFile(filename:string):Boolean; **Example** ```javascript -DWObject.CreateFile("File1"); -DWObject.CreateFile("File2"); -DWObject.CreateFile("File3"); -DWObject.OpenFile("File2"); //Need to call OpenFile after CreateFile. +//Stored the scanned image(s) under 'Category2'. +DWObject.CreateFile("Category1"); +DWObject.CreateFile("Category2"); +DWObject.CreateFile("Category3"); +DWObject.OpenFile("Category2"); //Need to call OpenFile after CreateFile. DWObject.AcquireImage(successCallback, failureCallback); function successCallback() { @@ -2440,7 +2441,7 @@ function failureCallback(errorCode, errorString) { ```typescript /** - * Get the current file name. The default value is 'dynamsoft-dvs-file'. + * Get the current category name. The default value is 'dynamsoft-dvs-file'. Scanned image(s) are stored in this category by default if no category name is created. */ GetCurrentFileName():String; ``` @@ -2483,10 +2484,10 @@ GetCurrentFileName():String; ```typescript /** - * Remove all images in the specified file. - * @argument filename Specify the file name. + * Delete the specified category and all images in it. + * @argument categoryName Specify the category name. */ -RemoveFile(filename:string):Boolean; +RemoveFile(categoryName:string):Boolean; ``` **Availability** @@ -2527,13 +2528,13 @@ RemoveFile(filename:string):Boolean; ```typescript /** - * Get the file info list. + * Get the list of all categories and their information. */ GetFileInfoList():Json Json: [{ - name: "fileName", + name: "categoryName", imageIds:[23122335, 25566822323] }, {……}] From 137d77c5820333cf5ce0012a8cd6ba05cb86903f Mon Sep 17 00:00:00 2001 From: Judy Date: Mon, 28 Mar 2022 14:55:42 -0700 Subject: [PATCH 3/3] Update change-dynamsoft-service-certificate.md --- faq/change-dynamsoft-service-certificate.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/faq/change-dynamsoft-service-certificate.md b/faq/change-dynamsoft-service-certificate.md index 5d625d76..1f0be6f8 100644 --- a/faq/change-dynamsoft-service-certificate.md +++ b/faq/change-dynamsoft-service-certificate.md @@ -12,7 +12,7 @@ description: How can I change the certificate of the Dynamsoft Service? ## How can I change the certificate of the Dynamsoft Service? -To replace the default certificates, the steps are: +To replace the default certificate, the steps are: - Generate a certificate for `127.0.0.1` - Install that certificate @@ -20,3 +20,5 @@ To replace the default certificates, the steps are: - Rename these two keys to `server.pem` (public) and `server_key.pem` (private) - Replace the old keys in `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_17\cert` - Restart the service + +NOTE: For v17.2 or higher versions, you can use the new API UpdateCert to automatically update the client side certificate.