Skip to content

Commit fdd7536

Browse files
committed
Merge branch 'master' into Jenny-branch
2 parents c28d7f7 + 9513053 commit fdd7536

File tree

5 files changed

+22
-50
lines changed

5 files changed

+22
-50
lines changed

info/api/Addon_PDF.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permalink: /info/api/Addon_PDF.html
1212

1313
> {WebTwainObject} denotes the `WebTwain` instance.
1414
15+
> All APIs on this page support Android Service from version 18.2.
16+
1517
**Methods**
1618

1719
| |

info/api/Dynamsoft_WebTwainEnv.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ interface Dynamsoft.DWT {
2121
readonly ServerLinuxVersionInfo: string;
2222
readonly ServerMacVersionInfo: string;
2323
readonly ServerVersionInfo: string;
24+
/**
25+
* Whether to load UI related js files.
26+
*/
27+
UseDefaultViewer: boolean;
28+
/**
29+
* Attach the callback function to the specified event.
30+
* @param event Specify the event.
31+
* @param callback Specify the callback.
32+
*/
33+
RegisterEvent(event: string, callback: (...args: any[]) => void): void;
2434
/**
2535
* Whether to create a WebTwain instance automatically.
2636
*/
@@ -57,8 +67,8 @@ interface Dynamsoft.DWT {
5767
asyncFailureFunc: (errorString: string) => {}
5868
): void;
5969
DeleteDWTObject(Id?: string): boolean;
60-
GetWebTwain(ContainerId?: string): WebTwain;
61-
GetWebTwainEx(WebTwainId: string): WebTwain;
70+
GetWebTwain(ContainerIdOrWebTwainId?: string): WebTwain;
71+
GetWebTwainEx(ContainerIdOrWebTwainId: string): WebTwain;
6272
Load(): void;
6373
Unload(): void;
6474
OnWebTwainPostExecute: function () {};

info/api/WebTwain_Acquire.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ interface DeviceConfiguration {
105105
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
106106
SelectSourceByIndex?: number; //Specify a source by its index.
107107
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
108+
PageSize?: Dynamsoft.DWT.EnumDWT_CapSupportedSizes | number; //Specify page size
108109
}
109110
```
110111

info/api/WebTwain_Viewer.md

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permalink: /info/api/WebTwain_Viewer.html
2121
| [`hide()`](#hide) | [`last()`](#last) | [`next()`](#next) | [`off()`](#off) |
2222
| [`on()`](#on) | [`previous()`](#previous) | [`render()`](#render) | [`setButtonClass()`](#setbuttonclass) |
2323
| [`setSelectedAreas()`](#setselectedareas) | [`setViewMode()`](#setviewmode) | [`show()`](#show) | [`unbind()`](#unbind) |
24-
| [`updateCheckboxStyle()`](#updatecheckboxstyle) | [`updatePageNumberStyle()`](#updatepagenumberstyle) | [`save()`](#save) |
24+
| [`updateCheckboxStyle()`](#updatecheckboxstyle) | [`updatePageNumberStyle()`](#updatepagenumberstyle) |
2525

2626
**Properties**
2727

@@ -254,7 +254,7 @@ interface ImageEditor {
254254
/**
255255
* Keeps the image data in the browser editor in sync with the buffer.
256256
**/
257-
save(): boolean;
257+
save(): Promise<void>;
258258
/**
259259
* Hide the ImageEditor object.
260260
*/
@@ -317,7 +317,7 @@ interface EditorSettings {
317317
/**
318318
     * Default is normal, value: normal=0, balance=1.
319319
     */
320-
workMode?: number | DynamsoftEnumsDWT.EnumDWT_WorkMode;
320+
workMode?: number | Dynamsoft.DWT.EnumDWT_WorkMode;
321321
}
322322
```
323323

@@ -460,6 +460,7 @@ var editorSettings = {
460460
"There is no source available",
461461
],
462462
},
463+
workMode:Dynamsoft.DWT.EnumDWT_WorkMode.balance,
463464
};
464465

465466
var imageEditor = DWObject.Viewer.createImageEditor(editorSettings);
@@ -2509,48 +2510,6 @@ interface pageNumberSettings {
25092510
</table>
25102511
</div>
25112512

2512-
---
2513-
2514-
## save
2515-
2516-
Keeps the image data in the browser editor in sync with the buffer.
2517-
2518-
**Syntax**
2519-
```typescript
2520-
save():Promise<void>;
2521-
```
2522-
2523-
**Availability**
2524-
2525-
<div class="availability">
2526-
<table>
2527-
2528-
<tr>
2529-
<td align="center">ActiveX</td>
2530-
<td align="center">H5(Windows)</td>
2531-
<td align="center">H5(macOS/TWAIN)</td>
2532-
<td align="center">H5(macOS/ICA)</td>
2533-
<td align="center">H5(Linux)</td>
2534-
</tr>
2535-
2536-
<tr>
2537-
<td align="center">not supported </td>
2538-
<td align="center">v18.2+ </td>
2539-
<td align="center">v18.2+ </td>
2540-
<td align="center">v18.2+ </td>
2541-
<td align="center">v18.2+ </td>
2542-
</tr>
2543-
2544-
</table>
2545-
</div>
2546-
2547-
**Example**
2548-
2549-
```javascript
2550-
var ImageEditor = DWObject.Viewer.createImageEditor(editorSettings);
2551-
ImageEditor.save();
2552-
```
2553-
25542513

25552514
---
25562515

info/schedule/Stable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ permalink: /info/schedule/Stable.html
2525
- Expanded the capabilities of the Android platform. <!--See the APIs supported on Android service. -->
2626

2727
#### Remote Scan
28-
- The remote scan solution powered by Dynamic Web TWAIN is now officially available. With it, you can turn any of your transitional document scanners into a network-able scanner and allow your end users to use it without installing anything on the client device. Read <a href="https://www.dynamsoft.com/remote-scan/docs/introduction/" target="_blank">this documentation</a> to learn the Remote Scan solution works.
28+
- The remote scan solution powered by Dynamic Web TWAIN is now officially available. With it, you can turn any of your tranditional document scanners into a network-able scanner and allow your end users to use it without installing anything on the client device. Read <a href="https://www.dynamsoft.com/remote-scan/docs/introduction/" target="_blank">this documentation</a> to learn how the Remote Scan solution works.
2929

3030

3131
### Improvements
3232

3333
#### Image Viewer
3434
- The Viewer component has been migrated to a dedicated resource file. This will allow for viewerless implementations of Dynamic Web TWAIN to reduce the load by removing the necessity of loading the Viewer resources into memory even when the Viewer is not being used. See the property [Dynamsoft.DWT.UseDefaultViewer]({{site.info}}api/Dynamsoft_WebTwainEnv.html#usedefaultviewer).
35-
- Added the enum [EnumDWT_WorkMode]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_workmode) with a new option for image editing
36-
- Added [save()]({{site.info}}api/WebTwain_Viewer.html#save) to the ImageEditor object
35+
- Added the enum [EnumDWT_WorkMode]({{site.info}}api/Dynamsoft_Enum.html#dynamsoftdwtenumdwt_workmode) with a new option for image editor setting, please refer to [createImageEditor]({{site.info}}api/WebTwain_Viewer.html#createimageeditor).
36+
- Added new method `save()` to the ImageEditor object, please refer to [createImageEditor]({{site.info}}api/WebTwain_Viewer.html#createimageeditor).
3737

3838
#### Optimized error handling during web twain initialization
3939
- Added an [OnWebTwainError]({{site.info}}api/Dynamsoft_WebTwainEnv.html#onwebtwainerror) event for better capturing errors during the web twain object initialization.

0 commit comments

Comments
 (0)