Skip to content

Commit 1c8df01

Browse files
authored
Merge pull request #627 from dynamsoft-docs/preview
v18.2
2 parents e34d9bd + adadd92 commit 1c8df01

File tree

14 files changed

+481
-139
lines changed

14 files changed

+481
-139
lines changed

_data/full_tree.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ tree_list:
6060
path: /info/api/Dynamsoft_Enum.html
6161
- name: Interfaces
6262
path: /info/api/Interfaces.html
63-
- name: Device
64-
path: /info/api/Device.html
63+
#- name: Device
64+
# path: /info/api/Device.html
6565
- name: WebTwain_Scanner
6666
path: /info/api/WebTwain_Acquire.html
6767
- name: WebTwain_Buffer

_includes/version-list.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<span class="fullVersionHistory">
22
<ul class="fullVersionInfo">
3-
<li onclick="changeVersion(this)">Latest Version (18.1)</li>
3+
<li onclick="changeVersion(this)">Latest Version (18.2)</li>
4+
<li onclick="changeVersion(this)">Version 18.1</li>
45
<li onclick="changeVersion(this)">Version 18.0</li>
56
<li onclick="changeVersion(this)">Version 17.3</li>
67
<li onclick="changeVersion(this)">Version 17.2.1</li>

faq/general-troubleshooting-steps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ permalink: /faq/general-troubleshooting-steps.html
2525
- Linux, `/opt/dynamsoft/DynamsoftService/log`
2626

2727
2. Set the log level
28-
- For only one client machine, go to the application with Dynamic Web TWAIN integrated, press F12 to open the development tools, switch to "console" tab and enter the command "DWObject.LogLevel = 1" to enable the debugger mode.
29-
- For all client machines, set [ `LogLevel` ]({{site.info}}api/WebTwain_Util.html#loglevel) to 1 in your code. This property should be set as soon as the `WebTwain` instance is created. For example, in the event `Dynamsoft_OnReady`
28+
Option A - Single client machine troubleshooting - go to the application with Dynamic Web TWAIN integrated, press F12 to open the development tools, switch to "console" tab and enter the command "DWObject.LogLevel = 1" to enable the debugger mode.
29+
Option B - For all client machines (application wide) - set [ `LogLevel` ]({{site.info}}api/WebTwain_Util.html#loglevel) to 1 in your code. This property should be set as soon as the `WebTwain` instance is created. For example, in the event `Dynamsoft_OnReady`
3030
```javascript
3131
function Dynamsoft_OnReady() {
3232
DWObject = Dynamsoft.DWT.GetWebTwain("dwtcontrolContainer");
@@ -41,4 +41,4 @@ permalink: /faq/general-troubleshooting-steps.html
4141
- On macOS, the log files are in `Go > Applications > Dynamsoft > DynamsoftServicex64_17 > {installed version No.} > log`
4242
- On Linux, the log files are in `/opt/dynamsoft/DynamsoftServicex64_17/log`
4343

44-
5. Set log level back to the default value (0) to disable the debugger mode, otherwise the operation speed will be affected.
44+
5. Set log level back to the default value (0) to disable the debugger mode, otherwise the operation speed will be affected.

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 | Original mode, the image data is processed in the buffer |
901+
| Balance | 1 | The image data is processed in the browser canvas |

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,8 @@ interface Dynamsoft.DWT {
6161
GetWebTwainEx(WebTwainId: string): WebTwain;
6262
Load(): void;
6363
Unload(): void;
64-
RemoveAllAuthorizations: function () {};
65-
OnWebTwainNotFound: function () {};
6664
OnWebTwainPostExecute: function () {};
6765
OnWebTwainPreExecute: function () {};
68-
OnWebTwainReady: function () {};
69-
OnWebTwainWillInit: function () {};
7066
}
7167

7268
/**
@@ -226,20 +222,16 @@ interface DWTInitialConfig {
226222
Initiates the library. If there are predefined `Containers` , one `WebTwain` instance will be created for each `Container` .
227223

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

232228
### `Unload()`
233229

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

236-
### `RemoveAllAuthorizations()`
237-
238-
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.
239-
240232
### `UseDefaultViewer`
241233

242-
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.
234+
Whether to use the built-in viewer. If it is set to `false` , the file `dynamsoft.webtwain.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.
243235

244236
### `CustomizableDisplayInfo`
245237

@@ -272,3 +264,31 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
272264
#### `loaderBarClassName`
273265

274266
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+
function Dynamsoft_OnError(error){
291+
// error handling
292+
console.error(error.message);
293+
}
294+
```

info/api/WebTwain_Acquire.md

Lines changed: 18 additions & 2 deletions
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>
@@ -4494,7 +4502,7 @@ interface CapabilitySetup {
44944502

44954503
**Parameters**
44964504

4497-
`capabilities`: A object that describes how to set capabilities.
4505+
`capabilities`: An object that describes how to set capabilities.
44984506

44994507
`successCallback`: A callback function that is executed if the request succeeds.
45004508

@@ -4512,6 +4520,7 @@ 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>
@@ -4520,6 +4529,7 @@ interface CapabilitySetup {
45204529
<td align="center">v16.0+</td>
45214530
<td align="center">v16.0+</td>
45224531
<td align="center">v16.0+</td>
4532+
<td align="center">v18.2+</td>
45234533
</tr>
45244534

45254535
</table>
@@ -4616,6 +4626,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46164626
<td align="center">H5(macOS/TWAIN)</td>
46174627
<td align="center">H5(macOS/ICA)</td>
46184628
<td align="center">H5(Linux)</td>
4629+
<td align="center">Android Service</td>
46194630
</tr>
46204631

46214632
<tr>
@@ -4624,14 +4635,15 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46244635
<td align="center">v18.0+</td>
46254636
<td align="center">v18.0+</td>
46264637
<td align="center">v18.0+</td>
4638+
<td align="center">v18.2+</td>
46274639
</tr>
46284640

46294641
</table>
46304642
</div>
46314643

46324644
**Remark**
46334645

4634-
[Device APIs]({{site.info}}api/Device.html)
4646+
Interface [Device]({{site.info}}api/Interfaces.html#device)
46354647

46364648
---
46374649

@@ -4672,6 +4684,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46724684
<td align="center">H5(macOS/TWAIN)</td>
46734685
<td align="center">H5(macOS/ICA)</td>
46744686
<td align="center">H5(Linux)</td>
4687+
<td align="center">Android Service</td>
46754688
</tr>
46764689

46774690
<tr>
@@ -4680,6 +4693,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46804693
<td align="center">v18.0+</td>
46814694
<td align="center">v18.0+</td>
46824695
<td align="center">v18.0+</td>
4696+
<td align="center">v18.2+</td>
46834697
</tr>
46844698

46854699
</table>
@@ -4712,6 +4726,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47124726
<td align="center">H5(macOS/TWAIN)</td>
47134727
<td align="center">H5(macOS/ICA)</td>
47144728
<td align="center">H5(Linux)</td>
4729+
<td align="center">Android Service</td>
47154730
</tr>
47164731

47174732
<tr>
@@ -4720,6 +4735,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47204735
<td align="center">v18.0+</td>
47214736
<td align="center">v18.0+</td>
47224737
<td align="center">v18.0+</td>
4738+
<td align="center">v18.2+</td>
47234739
</tr>
47244740

47254741
</table>

0 commit comments

Comments
 (0)