Skip to content

Commit 9fe79fe

Browse files
committed
Merge remote-tracking branch 'origin/preview' into kyle-18.2
2 parents f8ef674 + 9629c0e commit 9fe79fe

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

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_WebTwainEnv.md

Lines changed: 0 additions & 4 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
/**

info/api/WebTwain_Acquire.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3936,8 +3936,8 @@ TransferMode: Dynamsoft.DWT.EnumDWT_TransferMode | number;
39363936
<tr>
39373937
<td align="center">v5.2+</td>
39383938
<td align="center">v10.0+</td>
3939-
<td align="center">v11.0+</td>
39403939
<td align="center">not supported</td>
3940+
<td align="center">v11.0+</td>
39413941
<td align="center">not supported</td>
39423942
</tr>
39433943

info/api/WebTwain_IO.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,9 +1308,7 @@ HTTPDownloadEx(
13081308
path: string,
13091309
type: Dynamsoft.DWT.EnumDWT_ImageType | number,
13101310
successCallback: () => void,
1311-
failureCallback: (
1312-
errorCode: number,
1313-
errorString: string) => void
1311+
failureCallback: (errorCode: number, errorString: string) => void
13141312
): void;
13151313
```
13161314

@@ -1395,8 +1393,8 @@ HTTPDownloadThroughPost(
13951393
host: string,
13961394
path: string,
13971395
type: Dynamsoft.DWT.EnumDWT_ImageType | number,
1398-
onEmptyResponse: () => void,
1399-
onServerReturnedSomething: (errorCode: number, errorString: string, response: string) => void,
1396+
successCallback: () => void,
1397+
failureCallback: (errorCode: number, errorString: string, response?: any) => void,
14001398
): void;
14011399
```
14021400

@@ -1408,12 +1406,12 @@ HTTPDownloadThroughPost(
14081406

14091407
`type`: The format of the file. Please refer to [EnumDWT_ImageType]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_imagetype).
14101408

1411-
`onEmptyResponse`: A callback function that is executed if the response is empty.
1409+
`successCallback`: A callback function that is executed if the request succeeds.
14121410

1413-
`onServerReturnedSomething`: A callback function that is executed if the response is not empty.
1411+
`failureCallback`: A callback function that is executed if the request fails.
14141412
- `errorCode`: The error code.
14151413
- `errorString`: The error string.
1416-
- `response`: The response string.
1414+
- `response`: The response from your server.
14171415

14181416
**Availability**
14191417

info/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ permalink: /info/api/
594594
|[`GetConvertMode()`]({{site.info}}api/Addon_PDF.html#getconvertmode)| [`IsModuleInstalled()`]({{site.info}}api/Addon_PDF.html#ismoduleinstalled) | [`IsTextBasedPDF()`]({{site.info}}api/Addon_PDF.html#istextbasedpdf)| [`SetConvertMode()`]({{site.info}}api/Addon_PDF.html#setconvertmode)|
595595
|[`SetPassword()`]({{site.info}}api/Addon_PDF.html#setpassword)|[`SetResolution()`]({{site.info}}api/Addon_PDF.html#setresolution)|[`Write.Setup()`]({{site.info}}api/Addon_PDF.html#writesetup)|
596596

597-
### Camera
597+
<!-- ### Camera
598598
599599
#### Methods
600600
@@ -603,7 +603,7 @@ permalink: /info/api/
603603
|[`getSourceList()`]({{site.info}}api/Addon_Camera.html#getsourcelist) | [`selectSource()`]({{site.info}}api/Addon_Camera.html#selectsource)|[`getCurrentSource()`]({{site.info}}api/Addon_Camera.html#getcurrentsource)|[`closeSource()`]({{site.info}}api/Addon_Camera.html#closesource)|
604604
|[`getResolution()`]({{site.info}}api/Addon_Camera.html#getresolution)| [`setResolution()`]({{site.info}}api/Addon_Camera.html#setresolution)| [`getCurrentResolution()`]({{site.info}}api/Addon_Camera.html#getcurrentresolution)| [`play()`]({{site.info}}api/Addon_Camera.html#play)|
605605
|[`pause()`]({{site.info}}api/Addon_Camera.html#pause)| [`resume()`]({{site.info}}api/Addon_Camera.html#resume)| [`stop()`]({{site.info}}api/Addon_Camera.html#stop)|[`getStatus()`]({{site.info}}api/Addon_Camera.html#getstatus)|
606-
|[`capture()`]({{site.info}}api/Addon_Camera.html#capture)| [`showVideo()`]({{site.info}}api/Addon_Camera.html#showvideo)| [`closeVideo()`]({{site.info}}api/Addon_Camera.html#closevideo)|[`scanDocument()`]({{site.info}}api/Addon_Camera.html#scandocument)|
606+
|[`capture()`]({{site.info}}api/Addon_Camera.html#capture)| [`showVideo()`]({{site.info}}api/Addon_Camera.html#showvideo)| [`closeVideo()`]({{site.info}}api/Addon_Camera.html#closevideo)|[`scanDocument()`]({{site.info}}api/Addon_Camera.html#scandocument)| -->
607607

608608
### Webcam
609609

0 commit comments

Comments
 (0)