Skip to content

Commit 9fbbadc

Browse files
committed
minor fixed
1 parent 26711c4 commit 9fbbadc

File tree

3 files changed

+15
-51
lines changed

3 files changed

+15
-51
lines changed

info/api/Device.md

Lines changed: 11 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -50,54 +50,17 @@ interface Device {
5050
acquireImage(deviceConfiguration: DeviceConfiguration | null, sendTo: WebTwain): Promise< boolean>;
5151

5252
interface DeviceConfiguration {
53-
/**
54-
* Whether to show the built-in User Interface from the device vendor.
55-
*/
56-
IfShowUI?: boolean;
57-
/**
58-
* How a pixel is represented. Basically it means whether to scan in color, grey or black & white
59-
*/
60-
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType;
61-
/**
62-
* How detailed is the acquisition. Measured by dots per pixel (DPI)
63-
*/
64-
Resolution?: number;
65-
/**
66-
* Whether to use the document feeder or the flatbed of the device.
67-
*/
68-
IfFeederEnabled?: boolean;
69-
/**
70-
* Whether to scan one side or both sides of each paper.
71-
*/
72-
IfDuplexEnabled?: boolean;
73-
/**
74-
* Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
75-
*/
76-
IfDisableSourceAfterAcquire?: boolean;
77-
/**
78-
* Whether to retrieve information about the image after it's transferred.
79-
*/
80-
IfGetImageInfo?: boolean;
81-
/**
82-
* Whether to retrieve extended information about the image after it's transferred.
83-
*/
84-
IfGetExtImageInfo?: boolean;
85-
/**
86-
* How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
87-
*/
88-
extendedImageInfoQueryLevel?: number;
89-
/**
90-
* Whether to simulate the manufacturer's UI inside the client-side browser (only effective when IfShowUI is true).
91-
*/
92-
RemoteScan?:boolean;
93-
/**
94-
* Whether to simulate the manufacturer's UI inside the client-side browser (only effective when IfShowUI and RemoteScan are both true and the WebTwain instance doing the scan has no viewer of its own).
95-
*/
96-
ShowRemoteScanUI?:boolean;
97-
/**
98-
* Specify a source by its index.
99-
*/
100-
SelectSourceByIndex?: number;
53+
IfShowUI?: boolean; //Whether to show the built-in User Interface from the device vendor
54+
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType | number | string; //Whether to scan in color, grey or black & white
55+
Resolution?: number; //Measured by dots per pixel (DPI)
56+
IfFeederEnabled?: boolean; //Whether to use the document feeder or the flatbed of the device
57+
IfDuplexEnabled?: boolean; //Whether to scan one side or both sides
58+
IfDisableSourceAfterAcquire?: boolean; //Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
59+
IfGetImageInfo?: boolean; //Whether to retrieve information about the image after it's transferred.
60+
IfGetExtImageInfo?: boolean; //Whether to retrieve extended information about the image after it's transferred.
61+
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
62+
SelectSourceByIndex?: number; //Specify a source by its index.
63+
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
10164
}
10265
```
10366

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ interface DWTInitialConfig {
223223
WebTwainId: string,
224224
Host ? : string,
225225
Port ? : string,
226-
PortSSL ? : string
226+
PortSSL ? : string,
227+
UseLocalService? : boolean
227228
}
228229
```
229230

info/api/WebTwain_Acquire.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,12 @@ Bring up the Source Selection User Interface (UI) for the user to choose a data
830830
**Syntax**
831831

832832
```typescript
833-
SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promise<boolean>;
833+
SelectSourceAsync(deviceType?: Dynamsoft.DWT.EnumDWT_DeviceType | number): Promise<number>;
834834
```
835835

836836
**Parameters**
837837

838-
`deviceType`: Specify the device type of scanners. Please refer to [EnumDWT_DeviceType](({{{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_devicetype)).
838+
`deviceType`: Specify the device type of scanners. Please refer to [EnumDWT_DeviceType]({{{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_devicetype).
839839

840840
**Availability**
841841
<div class="availability">

0 commit comments

Comments
 (0)