Skip to content

Commit f6a92b3

Browse files
authored
Merge pull request #640 from ztyyLV/Jackson-branch
Jackson branch
2 parents 4b487ff + 4e59936 commit f6a92b3

File tree

2 files changed

+28
-40
lines changed

2 files changed

+28
-40
lines changed

info/api/WebTwain_Acquire.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,11 @@ AcquireImage(
120120
successCallBack?: () => void,
121121
failureCallBack?: (deviceConfiguration?: DeviceConfiguration, errorCode: number, errorString: string) => void
122122
): void;
123-
124-
interface DeviceConfiguration {
125-
IfShowUI?: boolean; //Whether to show the built-in User Interface from the device vendor
126-
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType | number | string; //Whether to scan in color, grey or black & white
127-
Resolution?: number; //Measured by dots per pixel (DPI)
128-
IfFeederEnabled?: boolean; //Whether to use the document feeder or the flatbed of the device
129-
IfDuplexEnabled?: boolean; //Whether to scan one side or both sides
130-
IfDisableSourceAfterAcquire?: boolean; //Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
131-
IfGetImageInfo?: boolean; //Whether to retrieve information about the image after it's transferred.
132-
IfGetExtImageInfo?: boolean; //Whether to retrieve extended information about the image after it's transferred.
133-
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
134-
SelectSourceByIndex?: number; //Specify a source by its index.
135-
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
136-
PageSize?: Dynamsoft.DWT.EnumDWT_CapSupportedSizes | number; //Specify page size
137-
}
138123
```
139124

140125
**Parameters**
141126

142-
`deviceConfiguration`: Configuration for the acquisition.
127+
`deviceConfiguration`: Configuration for the acquisition. Please refer to [Interface]({{site.info}}api/Interfaces.html#DeviceConfiguration).
143128

144129
`successCallback`: A callback function that is executed if the request succeeds.
145130

@@ -4708,7 +4693,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
47084693

47094694
**Parameters**
47104695

4711-
`device`: the device object. Please refer to [Device]({{site.info}}api/Interfaces.html#device)
4696+
`device`: the device object. Please refer to [Interface]({{site.info}}api/Interfaces.html#device).
47124697

47134698
**Availability**
47144699

@@ -4750,7 +4735,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47504735

47514736
**Parameters**
47524737

4753-
`deviceConfiguration`: The device configuration
4738+
`deviceConfiguration`: The device configuration. Please refer to [Interface]({{site.info}}api/Interfaces.html#DeviceConfiguration).
47544739

47554740
**Availability**
47564741

info/api/interfaces.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permalink: /info/api/interfaces.html
1313
| |
1414
| :----- |
1515
| [`Device`](#device) |
16+
| [`DeviceConfiguration`](#DeviceConfiguration) |
1617

1718
---
1819

@@ -31,25 +32,27 @@ interface Device{
3132
}
3233
```
3334

34-
**Availability**
35-
<div class="availability">
36-
<table>
37-
38-
<tr>
39-
<td align="center">ActiveX</td>
40-
<td align="center">H5(Windows)</td>
41-
<td align="center">H5(macOS/TWAIN)</td>
42-
<td align="center">H5(macOS/ICA)</td>
43-
<td align="center">H5(Linux)</td>
44-
</tr>
45-
46-
<tr>
47-
<td align="center">not supported</td>
48-
<td align="center">v18.0+</td>
49-
<td align="center">v18.0+</td>
50-
<td align="center">v18.0+</td>
51-
<td align="center">v18.0+</td>
52-
</tr>
53-
54-
</table>
55-
</div>
35+
---
36+
37+
## DeviceConfiguration
38+
39+
**Syntax**
40+
41+
```typescript
42+
interface DeviceConfiguration {
43+
IfShowUI?: boolean; //Whether to show the built-in User Interface from the device vendor
44+
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType | number | string; //Whether to scan in color, grey or black & white
45+
Resolution?: number; //Measured by dots per pixel (DPI)
46+
IfFeederEnabled?: boolean; //Whether to use the document feeder or the flatbed of the device
47+
IfDuplexEnabled?: boolean; //Whether to scan one side or both sides
48+
IfDisableSourceAfterAcquire?: boolean; //Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
49+
IfGetImageInfo?: boolean; //Whether to retrieve information about the image after it's transferred.
50+
IfGetExtImageInfo?: boolean; //Whether to retrieve extended information about the image after it's transferred.
51+
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
52+
SelectSourceByIndex?: number; //Specify a source by its index.
53+
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
54+
PageSize?: Dynamsoft.DWT.EnumDWT_CapSupportedSizes | number; //Specify page size
55+
}
56+
```
57+
58+
---

0 commit comments

Comments
 (0)