From e0266f6f85c8b0b7dfd918c8140cac46c461761d Mon Sep 17 00:00:00 2001 From: Michael Daw Date: Wed, 11 Jan 2023 11:31:43 -0800 Subject: [PATCH 1/3] Update HTTP-process-error.md Apply this to HTTPUpload as well. --- faq/HTTP-process-error.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faq/HTTP-process-error.md b/faq/HTTP-process-error.md index 707e4481..8a8aaafd 100644 --- a/faq/HTTP-process-error.md +++ b/faq/HTTP-process-error.md @@ -15,7 +15,7 @@ permalink: /faq/HTTP-process-error.html ### Symptom -When attempting to upload images using any of the HTTPUploadThroughPost\*\*\* methods the upload fails and you receive this error. +When attempting to upload images using any of the HTTPUpload\*\*\* methods the upload fails and you receive this error. ### Cause From a5d0a0460bb87b1a686afff138a7e84b2f570614 Mon Sep 17 00:00:00 2001 From: lunaaaw <64242273+lunaaaw@users.noreply.github.com> Date: Thu, 12 Jan 2023 15:43:24 +0800 Subject: [PATCH 2/3] Update Stable.md --- info/schedule/Stable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/info/schedule/Stable.md b/info/schedule/Stable.md index b794b03c..286a020b 100644 --- a/info/schedule/Stable.md +++ b/info/schedule/Stable.md @@ -27,7 +27,7 @@ The following table gives a quick comparison between the two editions. NOTE: -Plus Edition is a temporary edition as it's enhanced features will be separated into another SDK product in around June 2023. Due to the upcoming change, the Plus Edition is not available to download from the public website. If you want to access the Plus Edition now, please send a request to [support@dynamsoft.com](mailto:support@dynamsoft.com). +Plus Edition is a temporary edition as its enhanced features will be separated into another SDK product in around June 2023. Due to the upcoming change, the Plus Edition is not available to download from the public website. If you want to access the Plus Edition now, please send a request to [support@dynamsoft.com](mailto:support@dynamsoft.com). ## 18.0 (12/22/2022) From 32ea8439dffda666b225be82689f758822c93607 Mon Sep 17 00:00:00 2001 From: ztyyLV <97287824+ztyyLV@users.noreply.github.com> Date: Thu, 12 Jan 2023 18:00:06 +0800 Subject: [PATCH 3/3] update --- info/api/Dynamsoft_FileUploader.md | 52 ++++++++-------- info/api/WebTwain_Edit.md | 5 +- info/api/WebTwain_Viewer.md | 99 ------------------------------ 3 files changed, 27 insertions(+), 129 deletions(-) diff --git a/info/api/Dynamsoft_FileUploader.md b/info/api/Dynamsoft_FileUploader.md index ad9fa438..91d40222 100644 --- a/info/api/Dynamsoft_FileUploader.md +++ b/info/api/Dynamsoft_FileUploader.md @@ -63,8 +63,8 @@ Init(
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Usage notes** @@ -178,8 +178,8 @@ interface FormField {
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | --- @@ -200,8 +200,8 @@ Run(job: Job): boolean;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | --- @@ -222,8 +222,8 @@ Cancel(job: Job): boolean;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | --- @@ -243,8 +243,8 @@ CancelAllUpload(): boolean;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | --- @@ -307,8 +307,8 @@ GenerateURLForUploadData(
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Example** @@ -358,8 +358,8 @@ ServerUrl: string;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | --- @@ -379,8 +379,8 @@ HttpHeader: object;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Usage notes** @@ -404,8 +404,8 @@ SourceValue: object;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Usage notes** @@ -435,8 +435,8 @@ FormField: object;
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Usage notes** @@ -468,8 +468,8 @@ job.FormField.Add("customField", "FormFieldValue");
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Example** @@ -499,8 +499,8 @@ function FileUpload_ OnUploadTransferPercentage (obj, sPercentage){
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Example** @@ -538,8 +538,8 @@ errorString: string
|:-|:-| -|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)|WASM| -| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | supported | +|ActiveX|H5(Windows)|H5(macOS/TWAIN)|H5(macOS/ICA)|H5(Linux)| +| not supported | v17.2+ | v17.2+ | v17.2+ | v17.2+ | **Example** diff --git a/info/api/WebTwain_Edit.md b/info/api/WebTwain_Edit.md index d878904b..634823e3 100644 --- a/info/api/WebTwain_Edit.md +++ b/info/api/WebTwain_Edit.md @@ -1050,19 +1050,16 @@ CutToClipboard(index: number): boolean; -<> -align="center">v4.0+ +v4.0+ v10.0+ v11.0+ v11.0+ v12.1+ -not supported - --- ## CropToClipboard diff --git a/info/api/WebTwain_Viewer.md b/info/api/WebTwain_Viewer.md index 5efa083d..4caf1f47 100644 --- a/info/api/WebTwain_Viewer.md +++ b/info/api/WebTwain_Viewer.md @@ -1244,8 +1244,6 @@ previous(): number; v16.2+ v16.2+ v16.2+ -v16.2+ -v18.0+ @@ -1901,8 +1899,6 @@ readonly idPostfix: string; v16.2+ v16.2+ v16.2+ -v16.2+ -v18.0+ @@ -2433,101 +2429,6 @@ When set to true, the index in the upper left corner of the viewer will be selec --- -## createTemplate - -**Syntax** - -
->- v17.3 ->- v17.2.5 -> -> -```typescript -/** - * Create document scanner template. - * @argument templateName Currently templateName only supports "documentScanner". - * @argument documentConfiguration Configuration for the document object. - */ -createTemplate("templateName", documentConfiguration?: DocumentConfiguration):DocumentViewerTemplate -interface DocumentViewerTemplate{ - getCustomElement():CustomElement; //Get CustomElement. Can display save & upload interface in CustomElement. - onAddDocumentFunc = function () {} - onExitFunc = function () {} - onSaveFunc = function () {} //Save button click event - onUploadFunc = function () {} //Upload button click event - onRemoveSelectedFunc = function () {} //Remove button click event -} -``` -```typescript -/** - * Create document scanner template. - * @argument templateName Currently templateName only supports "documentScanner". - */ -createTemplate("templateName"):DocumentViewerTemplate -interface DocumentViewerTemplate{ - getCustomElement():CustomElement; //Get CustomElement. Can display save & upload interface in CustomElement. - onAddDocumentFunc = function () {} - onExitFunc = function () {} - onSaveFunc = function () {} //Save button click event - onUploadFunc = function () {} //Upload button click event - onRemoveSelectedFunc = function () {} //Remove button click event -} -``` - -**Availability** -
- - - - - - - - - - - - - - - - - - -
ActiveXH5(Windows)H5(macOS/TWAIN)H5(macOS/ICA)H5(Linux)
not supported v17.3+ v17.3+ v17.3+ v17.3+
-
- -**Example** - -```javascript -var DWObject, template; -Dynamsoft.DWT.CreateDWTObjectEx( - { - WebTwainId: "a", - UseLocalService: false, - }, - function (obj) { - DWObject = obj; - template = DWObject.Viewer.createTemplate("documentScanner"); - DWObject.Viewer.bind(null, template); //full screen - DWObject.Viewer.show(); - - template.onExitFunc = function () { - DWObject.Viewer.show(); - console.error ("execute"); - //RemoveAllFile(); -} -}, function (errorCode, errorString) { - console.log(errorString); - }); -``` - -**Usage Notes** - -For details on the DocumentConfiguration interface, please refer to the camera [scanDocument]({{site.info}}api/Addon_Camera.html#scandocument) API. - ---- - ## updateCheckboxStyle **Syntax**