Skip to content

Commit 6c6c4e6

Browse files
committed
update
1 parent 0f630de commit 6c6c4e6

File tree

2 files changed

+39
-32
lines changed

2 files changed

+39
-32
lines changed

info/api/Device.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ interface Device {
3939

4040
## DeviceObject.acquireImage()
4141

42+
Scan documents into another DWObject control. Supports eSCL scanners and all other scanners with limited capabilities.
43+
4244
**Syntax**
4345

4446
```typescript
45-
/**
46-
* Scan documents into another DWObject control. Supports eSCL scanners and all other scanners with limited capabilities.
47-
* @param deviceConfiguration The device configuration
48-
* @param sendTo The DWObject control to scan into
49-
*/
5047
acquireImage(deviceConfiguration: DeviceConfiguration | null, sendTo: WebTwain): Promise< boolean>;
5148

5249
interface DeviceConfiguration {
@@ -64,17 +61,11 @@ interface DeviceConfiguration {
6461
}
6562
```
6663

67-
**Example**
64+
**Parameters**
6865

69-
```javascript
70-
DWObject.GetDevicesAsync().then((deviceList)=>{
71-
return deviceList[0].acquireImage({},DWObject)
72-
}).then((result)=>{
73-
console.log(result)
74-
}).catch((e)=>{
75-
console.error(e)
76-
})
77-
```
66+
`deviceConfiguration`: The device configuration
67+
68+
`sendTo`: The DWObject control to scan into
7869

7970
**Availability**
8071
<div class="availability">
@@ -98,3 +89,15 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
9889

9990
</table>
10091
</div>
92+
93+
**Example**
94+
95+
```javascript
96+
DWObject.GetDevicesAsync().then((deviceList)=>{
97+
return deviceList[0].acquireImage({},DWObject)
98+
}).then((result)=>{
99+
console.log(result)
100+
}).catch((e)=>{
101+
console.error(e)
102+
})
103+
```

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,11 @@ UpdateCert(
8282

8383
## licenseException
8484

85+
Error message related to license.
86+
8587
**Syntax**
8688

8789
``` typescript
88-
/**
89-
* Error message related to license.
90-
*/
9190
licenseException: string;
9291
```
9392

@@ -132,27 +131,32 @@ Sets or returns where the library looks for resources files including service in
132131

133132
### `UpdateCert`
134133

134+
Update and download certificate (server.pem.ldsc & server_key.pem.ldsc) to DynamsoftServicex64_17\cert.
135+
135136
**Syntax**
136137

137138
``` typescript
138-
/**
139-
* Update and download certificate (server.pem.ldsc & server_key.pem.ldsc) to DynamsoftServicex64_17\cert.
140-
* @param url Url to download the new certificate. E.g. http://download.dynamsoft.com/cert.zip. server.pem.ldsc & server_key.pem.ldsc should be in cert.zip.
141-
* @param successCallback A callback function that is executed if the request succeeds.
142-
* @param failureCallback A callback function that is executed if the request fails.
143-
* @argument errorCode The error code.
144-
* @argument errorString The error string.
145-
*/
146139
UpdateCert(
147-
url: string,
148-
optionalAsyncSuccessFunc?: () => void,
149-
optionalAsyncFailureFunc?: (
150-
errorCode: number,
151-
errorString: string) => void
152-
);
140+
url: string,
141+
optionalAsyncSuccessFunc?: () => void,
142+
optionalAsyncFailureFunc?: (
143+
errorCode: number,
144+
errorString: string) => void
145+
);
153146
```
154147

148+
**Parameters**
149+
150+
`url`: Url to download the new certificate. E.g. http://download.dynamsoft.com/cert.zip. server.pem.ldsc & server_key.pem.ldsc should be in cert.zip.
151+
152+
`successCallback`: A callback function that is executed if the request succeeds.
153+
154+
`failureCallback`: A callback function that is executed if the request fails.
155+
- `errorCode`: The error code.
156+
- `errorString`: The error string.
157+
155158
**Availability**
159+
156160
<div class="availability">
157161
<table>
158162

0 commit comments

Comments
 (0)