You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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`
Initiates the library. If there are predefined `Containers` , one `WebTwain` instance will be created for each `Container` .
227
223
228
224
### `RegisterEvent()`
229
-
225
+
[We removed OnWebTWainReady...]: #
230
226
Registers an environmental event. Typically the event is `OnWebTwainReady` which is triggered when the initialization completes.
231
227
232
228
### `Unload()`
233
229
234
230
Destroys all `WebTwain` instances and cuts off the connection to the Dynamsoft Service.
235
231
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
-
240
232
### `UseDefaultViewer`
241
233
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.
243
235
244
236
### `CustomizableDisplayInfo`
245
237
@@ -272,3 +264,31 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement.
272
264
#### `loaderBarClassName`
273
265
274
266
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
0 commit comments