Skip to content

Commit 11a7d24

Browse files
committed
Update WebTwain_Acquire.md
1 parent 95f5bd8 commit 11a7d24

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

info/api/WebTwain_Acquire.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,8 +1389,9 @@ CloseSourceManager(): boolean;
13891389

13901390
**Example**
13911391

1392-
DWObject.CloseSource();
1392+
```javascript
13931393
DWObject.CloseSourceManager();
1394+
```
13941395

13951396
---
13961397

@@ -1548,10 +1549,15 @@ GetCustomDSData(fileName: string): boolean;
15481549
</table>
15491550
</div>
15501551

1552+
**Usage notes**
1553+
1554+
Typically, the data source data file is set by the method [SetCustomDSData()](#setcustomdsdata).
1555+
15511556
**Example**
15521557

15531558
```javascript
1554-
DWObject.GetCustomDSData("C:\\customDSData");
1559+
// Please note, the API only works for TWAIN driver.
1560+
DWObject.GetCustomDSData("C:\\Users\\UserName\\Desktop\\ProfileName");
15551561
```
15561562

15571563
---
@@ -1590,6 +1596,17 @@ GetCustomDSDataEx(): string;
15901596
</table>
15911597
</div>
15921598

1599+
**Usage notes**
1600+
1601+
Typically, the data source data file is set by the method [SetCustomDSDataEx()](#setcustomdsdataex).
1602+
1603+
**Example**
1604+
1605+
```javascript
1606+
// Please note, the API only works for TWAIN driver.
1607+
DWObject.GetCustomDSDataEx(); // Return a base64 string
1608+
```
1609+
15931610
---
15941611

15951612
## GetSourceNameItems
@@ -1630,6 +1647,13 @@ GetSourceNameItems(index: number): string;
16301647
</table>
16311648
</div>
16321649

1650+
**Example**
1651+
1652+
```javascript
1653+
DWObject.GetSourceNames(); // [scanner 1, scanner 2, scanner 3...]
1654+
DWObject.GetSourceNameItems(0); // return the name of scanner 1
1655+
```
1656+
16331657
---
16341658

16351659
## OpenSourceManager
@@ -1670,6 +1694,12 @@ OpenSourceManager(): boolean;
16701694

16711695
If application identification needs to be set, it should be set before this API.
16721696

1697+
**Example**
1698+
1699+
```javascript
1700+
DWObject.OpenSourceManager();
1701+
```
1702+
16731703
---
16741704

16751705
## OpenSourceManagerAsync
@@ -1833,6 +1863,13 @@ SetCustomDSData(fileName: string): boolean;
18331863

18341864
Typically, the data source data file is created by the method [GetCustomDSData()](#getcustomdsdata).
18351865

1866+
**Example**
1867+
1868+
```javascript
1869+
// Please note, the API only works for TWAIN driver.
1870+
DWObject.SetCustomDSData("C:\\Users\\UserName\\Desktop\\ProfileName");
1871+
```
1872+
18361873
---
18371874

18381875
## SetCustomDSDataEx
@@ -1877,6 +1914,11 @@ SetCustomDSDataEx(dsDataString: string): boolean;
18771914

18781915
Typically the data source data string is created by the method [GetCustomDSDataEx()](#getcustomdsdataex)
18791916

1917+
```javascript
1918+
// Please note, the API only works for TWAIN driver.
1919+
DWObject.SetCustomDSData("the base64 string of your profile");
1920+
```
1921+
18801922
---
18811923

18821924
## SetFileXferInfo

0 commit comments

Comments
 (0)