Skip to content

Commit b8ba3c2

Browse files
authored
Merge pull request #617 from dynamsoft-docs/kyle-18.2
Kyle-18.2-draft
2 parents 9629c0e + f8ef674 commit b8ba3c2

File tree

9 files changed

+279
-16
lines changed

9 files changed

+279
-16
lines changed

info/api/Dynamsoft_Enum.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -876,17 +876,26 @@ Note: IT_MULTIPAGE_PDF & IT_MULTIPAGE_TIF are only applicable to the ImageType o
876876
| Label | Value|
877877
|:-|:-|
878878
| TWAINSCANNER | 0x10 |
879-
| WIATWAINSCANNER | 0x20 |
879+
| WIASCANNER | 0x20 |
880880
| TWAINX64SCANNER | 0x40 |
881881
| ICASCANNER | 0x80 |
882882
| SANESCANNER | 0x100 |
883883
| ESCLSCANNER | 0x200 |
884884
| WIFIDIRECTSCANNER | 0x400 |
885+
| WIATWAINSCANNER | 0x800 |
886+
885887

886888
## `Dynamsoft.DWT.EnumDWT_ExtImageInfo`
887889

888-
| Label | Value|
890+
| Label | Value |
889891
|:-|:-|
890892
| default | 0 |
891893
| standard | 1 |
892-
| supported | 2 |
894+
| supported | 2 |
895+
896+
## `Dynamsoft.DWT.EnumDWT_WorkMode`
897+
898+
| Label | Value | Description |
899+
|:-|:-|:-|
900+
| Normal | 0 | The data is processed on the server side first, and then displayed in the viewer |
901+
| Balanced | 1 | The data is processed in the canvas and then updated to the server side |

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,13 @@ interface DWTInitialConfig {
222222
Initiates the library. If there are predefined `Containers` , one `WebTwain` instance will be created for each `Container` .
223223

224224
### `RegisterEvent()`
225-
225+
[We removed OnWebTWainReady...]: #
226226
Registers an environmental event. Typically the event is `OnWebTwainReady` which is triggered when the initialization completes.
227227

228228
### `Unload()`
229229

230230
Destroys all `WebTwain` instances and cuts off the connection to the Dynamsoft Service.
231231

232-
### `RemoveAllAuthorizations()`
233-
234-
Removes the specific authorizations made by end users on a client machine. Only effective when the security feature is enabled for local files, scanners or cameras.
235-
236232
### `UseDefaultViewer`
237233

238234
Whether to use the built-in viewer. If it is set to `false` , the file `dynamsoft.viewer.js` is not loaded at all and there is no way to add it back later. Therefore, only set it to `false` when you absolutely won't need the viewer or will be building your own viewer.
@@ -268,3 +264,30 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
268264
#### `loaderBarClassName`
269265

270266
Specify the class name of the DIV element that contains the loader bar. With this class, you can customize the loader bar even further with CSS.
267+
268+
#### `OnWebTwainReady`
269+
270+
A built-in callback triggered when the Web TWAIN resources have completed loading
271+
272+
**Example**
273+
```javascript
274+
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady',
275+
Dynamsoft_OnReady //The typical function for initalizing the environment once the resources have loaded
276+
);
277+
```
278+
279+
#### `OnWebTwainError`
280+
281+
A built-in callback triggered when an error is detected when laoding the Web TWAIN environment
282+
283+
**Example**
284+
```javascript
285+
Dynamsoft.DWT.RegisterEvent('OnWebTwainError',
286+
Dynamsoft_OnError
287+
);
288+
289+
290+
Dynamsoft_OnError: function(Dynamsoft.DWT.Exception){
291+
// error handling
292+
}
293+
```

info/api/WebTwain_Acquire.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ CloseSourceAsync(): Promise<boolean>;
377377
<td align="center">H5(macOS/TWAIN)</td>
378378
<td align="center">H5(macOS/ICA)</td>
379379
<td align="center">H5(Linux)</td>
380+
<td align="center">Android Service</td>
380381
</tr>
381382

382383
<tr>
@@ -385,6 +386,7 @@ CloseSourceAsync(): Promise<boolean>;
385386
<td align="center">v16.1+</td>
386387
<td align="center">v16.1+</td>
387388
<td align="center">v16.1+</td>
389+
<td align="center">v18.2+</td>
388390
</tr>
389391

390392
</table>
@@ -831,6 +833,7 @@ SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promi
831833
<td align="center">H5(macOS/TWAIN)</td>
832834
<td align="center">H5(macOS/ICA)</td>
833835
<td align="center">H5(Linux)</td>
836+
<td align="center">Android Service</td>
834837
</tr>
835838

836839
<tr>
@@ -839,6 +842,7 @@ SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promi
839842
<td align="center">v16.1+</td>
840843
<td align="center">v16.1+</td>
841844
<td align="center">v16.1+</td>
845+
<td align="center">v18.2+</td>
842846
</tr>
843847

844848
</table>
@@ -4159,6 +4163,7 @@ RegisterEvent("OnPostTransferAsync", function (outputInfo: OutputInfo) {});
41594163
<td align="center">H5(macOS/TWAIN)</td>
41604164
<td align="center">H5(macOS/ICA)</td>
41614165
<td align="center">H5(Linux)</td>
4166+
<td align="center">Android Service</td>
41624167
</tr>
41634168

41644169
<tr>
@@ -4167,6 +4172,7 @@ RegisterEvent("OnPostTransferAsync", function (outputInfo: OutputInfo) {});
41674172
<td align="center">v15.1+</td>
41684173
<td align="center">v15.1+</td>
41694174
<td align="center">v15.1+</td>
4175+
<td align="center">v18.2+</td>
41704176
</tr>
41714177

41724178
</table>
@@ -4427,6 +4433,7 @@ interface ValueAndLabel {
44274433
<td align="center">H5(macOS/TWAIN)</td>
44284434
<td align="center">H5(macOS/ICA)</td>
44294435
<td align="center">H5(Linux)</td>
4436+
<td align="center">Android Service</td>
44304437
</tr>
44314438

44324439
<tr>
@@ -4435,6 +4442,7 @@ interface ValueAndLabel {
44354442
<td align="center">v16.0+</td>
44364443
<td align="center">v16.0+</td>
44374444
<td align="center">v16.0+</td>
4445+
<td align="center">v18.2+</td>
44384446
</tr>
44394447

44404448
</table>
@@ -4512,14 +4520,15 @@ interface CapabilitySetup {
45124520
<td align="center">H5(macOS/TWAIN)</td>
45134521
<td align="center">H5(macOS/ICA)</td>
45144522
<td align="center">H5(Linux)</td>
4523+
<td align="center">Android Service</td>
45154524
</tr>
45164525

45174526
<tr>
45184527
<td align="center">v16.0+</td>
45194528
<td align="center">v16.0+</td>
45204529
<td align="center">v16.0+</td>
45214530
<td align="center">v16.0+</td>
4522-
<td align="center">v16.0+</td>
4531+
<td align="center">v18.2+</td>
45234532
</tr>
45244533

45254534
</table>
@@ -4616,6 +4625,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46164625
<td align="center">H5(macOS/TWAIN)</td>
46174626
<td align="center">H5(macOS/ICA)</td>
46184627
<td align="center">H5(Linux)</td>
4628+
<td align="center">Android Service</td>
46194629
</tr>
46204630

46214631
<tr>
@@ -4624,6 +4634,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46244634
<td align="center">v18.0+</td>
46254635
<td align="center">v18.0+</td>
46264636
<td align="center">v18.0+</td>
4637+
<td align="center">v18.2+</td>
46274638
</tr>
46284639

46294640
</table>
@@ -4672,6 +4683,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46724683
<td align="center">H5(macOS/TWAIN)</td>
46734684
<td align="center">H5(macOS/ICA)</td>
46744685
<td align="center">H5(Linux)</td>
4686+
<td align="center">Android Service</td>
46754687
</tr>
46764688

46774689
<tr>
@@ -4680,6 +4692,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46804692
<td align="center">v18.0+</td>
46814693
<td align="center">v18.0+</td>
46824694
<td align="center">v18.0+</td>
4695+
<td align="center">v18.2+</td>
46834696
</tr>
46844697

46854698
</table>
@@ -4712,6 +4725,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47124725
<td align="center">H5(macOS/TWAIN)</td>
47134726
<td align="center">H5(macOS/ICA)</td>
47144727
<td align="center">H5(Linux)</td>
4728+
<td align="center">Android Service</td>
47154729
</tr>
47164730

47174731
<tr>
@@ -4720,6 +4734,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47204734
<td align="center">v18.0+</td>
47214735
<td align="center">v18.0+</td>
47224736
<td align="center">v18.0+</td>
4737+
<td align="center">v18.2+</td>
47234738
</tr>
47244739

47254740
</table>

0 commit comments

Comments
 (0)