Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions info/api/Dynamsoft_Enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -876,17 +876,26 @@ Note: IT_MULTIPAGE_PDF & IT_MULTIPAGE_TIF are only applicable to the ImageType o
| Label | Value|
|:-|:-|
| TWAINSCANNER | 0x10 |
| WIATWAINSCANNER | 0x20 |
| WIASCANNER | 0x20 |
| TWAINX64SCANNER | 0x40 |
| ICASCANNER | 0x80 |
| SANESCANNER | 0x100 |
| ESCLSCANNER | 0x200 |
| WIFIDIRECTSCANNER | 0x400 |
| WIATWAINSCANNER | 0x800 |


## `Dynamsoft.DWT.EnumDWT_ExtImageInfo`

| Label | Value|
| Label | Value |
|:-|:-|
| default | 0 |
| standard | 1 |
| supported | 2 |
| supported | 2 |

## `Dynamsoft.DWT.EnumDWT_WorkMode`

| Label | Value | Description |
|:-|:-|:-|
| Normal | 0 | The data is processed on the server side first, and then displayed in the viewer |
| Balanced | 1 | The data is processed in the canvas and then updated to the server side |
33 changes: 28 additions & 5 deletions info/api/Dynamsoft_WebTwainEnv.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,13 @@ interface DWTInitialConfig {
Initiates the library. If there are predefined `Containers` , one `WebTwain` instance will be created for each `Container` .

### `RegisterEvent()`

[We removed OnWebTWainReady...]: #
Registers an environmental event. Typically the event is `OnWebTwainReady` which is triggered when the initialization completes.

### `Unload()`

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

### `RemoveAllAuthorizations()`

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.

### `UseDefaultViewer`

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.
Expand Down Expand Up @@ -272,3 +268,30 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
#### `loaderBarClassName`

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.

#### `OnWebTwainReady`

A built-in callback triggered when the Web TWAIN resources have completed loading

**Example**
```javascript
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady',
Dynamsoft_OnReady //The typical function for initalizing the environment once the resources have loaded
);
```

#### `OnWebTwainError`

A built-in callback triggered when an error is detected when laoding the Web TWAIN environment

**Example**
```javascript
Dynamsoft.DWT.RegisterEvent('OnWebTwainError',
Dynamsoft_OnError
);


Dynamsoft_OnError: function(Dynamsoft.DWT.Exception){
// error handling
}
```
17 changes: 16 additions & 1 deletion info/api/WebTwain_Acquire.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ CloseSourceAsync(): Promise<boolean>;
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -385,6 +386,7 @@ CloseSourceAsync(): Promise<boolean>;
<td align="center">v16.1+</td>
<td align="center">v16.1+</td>
<td align="center">v16.1+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -831,6 +833,7 @@ SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promi
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -839,6 +842,7 @@ SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promi
<td align="center">v16.1+</td>
<td align="center">v16.1+</td>
<td align="center">v16.1+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4159,6 +4163,7 @@ RegisterEvent("OnPostTransferAsync", function (outputInfo: OutputInfo) {});
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -4167,6 +4172,7 @@ RegisterEvent("OnPostTransferAsync", function (outputInfo: OutputInfo) {});
<td align="center">v15.1+</td>
<td align="center">v15.1+</td>
<td align="center">v15.1+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4427,6 +4433,7 @@ interface ValueAndLabel {
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -4435,6 +4442,7 @@ interface ValueAndLabel {
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4512,14 +4520,15 @@ interface CapabilitySetup {
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v16.0+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4616,6 +4625,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -4624,6 +4634,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4672,6 +4683,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -4680,6 +4692,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down Expand Up @@ -4712,6 +4725,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
<td align="center">H5(macOS/TWAIN)</td>
<td align="center">H5(macOS/ICA)</td>
<td align="center">H5(Linux)</td>
<td align="center">Android Service</td>
</tr>

<tr>
Expand All @@ -4720,6 +4734,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.0+</td>
<td align="center">v18.2+</td>
</tr>

</table>
Expand Down
Loading