Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions info/api/WebTwain_Acquire.md
Original file line number Diff line number Diff line change
Expand Up @@ -1974,23 +1974,23 @@ Example argument for the parameter `fileName`
- "C:\\webtwain" + <> + ".jpg": The scanned images will result in "C:\\webtwain1.jpg", "C:\\webtwain2.jpg", "C:\\webtwain3.jpg", etc.
- "C:\\webtwain" + <%06d> + ".jpg": The scanned images will result in "C:\\webtwain000001.jpg", "C:\\webtwain000002.jpg", "C:\\webtwain000003.jpg", etc.

Check out the available formats [Dynamsoft.DWT.EnumDWT_FileFormat]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_fileformat-).
Check out the available formats [Dynamsoft.DWT.EnumDWT_FileFormat]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_fileformat).

**Example**

```javascript
DWObject.OpenSource();
DWObject.TransferMode = Dynamsoft.DWT.EnumDWT_TransferMode.TWSX_FILE;
if (DWObject.TransferMode === Dynamsoft.DWT.EnumDWT_TransferMode.TWSX_FILE) {
if (
DWObject.SetFileXferInfo(
"C:\\Temp\\WebTWAIN<%06d>.bmp",
Dynamsoft.DWT.EnumDWT_FileFormat.TWFF_BMP
)
) {
DWObject.IfShowUI = true;
DWObject.AcquireImage();
}
if (
DWObject.SetFileXferInfo(
"C:\\Temp\\WebTWAIN<%06d>.bmp",
Dynamsoft.DWT.EnumDWT_FileFormat.TWFF_BMP
)
) {
DWObject.IfShowUI = true;
DWObject.AcquireImage();
}
}
```

Expand Down Expand Up @@ -2154,6 +2154,8 @@ The value of this property defaults to `true` , which means that the newly acqui

If it's set to `false` , the images will be inserted before the current image. The important thing to note is that, by design, the current image is always the last acquired one which means that the images acquired after setting `IfAppendImage` to `false` will be displayed / retained in the reverse order.

Here is an [article]({{site.faq}}insert-new-pages-to-existing-document.html#can-i-insert-newly-scanned-pages-to-an-existing-document) to demonstrate how to insert new images to a specified index.

---

## IfDisableSourceAfterAcquire
Expand Down