Skip to content

Commit ae920bf

Browse files
committed
post review update. missing viewer class updates
1 parent 6550a00 commit ae920bf

File tree

4 files changed

+96
-21
lines changed

4 files changed

+96
-21
lines changed

info/api/Dynamsoft_Enum.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,15 @@ Note: IT_MULTIPAGE_PDF & IT_MULTIPAGE_TIF are only applicable to the ImageType o
887887

888888
## `Dynamsoft.DWT.EnumDWT_ExtImageInfo`
889889

890-
| Label | Value|
890+
| Label | Value |
891891
|:-|:-|
892892
| default | 0 |
893893
| standard | 1 |
894-
| supported | 2 |
894+
| supported | 2 |
895+
896+
## `Dynamsoft.DWT.EnumDWT_WorkMode`
897+
898+
| Label | Value | Description |
899+
|:-|:-|:-|
900+
| Normal | 0 | The data is processed on the server side first, and then displayed in the viewer |
901+
| Balanced | 1 | The data is processed in the canvas and then updated to the server side |

info/api/WebTwain_IO.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,8 +3450,6 @@ Supported in Service mode only.
34503450

34513451
## IfShowCancelDialogWhenImageTransfer
34523452

3453-
**__Note:__** Deprecated as of 18.2
3454-
34553453
Return or set whether to show the progress of an operation with a button to cancel it.
34563454

34573455
**Syntax**
@@ -3484,6 +3482,10 @@ IfShowCancelDialogWhenImageTransfer: boolean;
34843482
</table>
34853483
</div>
34863484

3485+
**Usage Notes**
3486+
3487+
This API is only valid if `IfShowProgressBar = true;`
3488+
34873489
---
34883490

34893491
## IfShowProgressBar

info/api/WebTwain_Viewer.md

Lines changed: 44 additions & 1 deletion
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) |
24+
| [`updateCheckboxStyle()`](#updatecheckboxstyle) | [`updatePageNumberStyle()`](#updatepagenumberstyle) | [`save()`](#save) |
2525

2626
**Properties**
2727

@@ -2450,6 +2450,49 @@ interface pageNumberSettings {
24502450
</table>
24512451
</div>
24522452

2453+
---
2454+
2455+
## save
2456+
2457+
Save the update image from the ImageEditor
2458+
2459+
**Syntax**
2460+
```typescript
2461+
save():Promise<void>;
2462+
```
2463+
2464+
**Availability**
2465+
2466+
<div class="availability">
2467+
<table>
2468+
2469+
<tr>
2470+
<td align="center">ActiveX</td>
2471+
<td align="center">H5(Windows)</td>
2472+
<td align="center">H5(macOS/TWAIN)</td>
2473+
<td align="center">H5(macOS/ICA)</td>
2474+
<td align="center">H5(Linux)</td>
2475+
</tr>
2476+
2477+
<tr>
2478+
<td align="center">not supported </td>
2479+
<td align="center">v18.2+ </td>
2480+
<td align="center">v18.2+ </td>
2481+
<td align="center">v18.2+ </td>
2482+
<td align="center">v18.2+ </td>
2483+
</tr>
2484+
2485+
</table>
2486+
</div>
2487+
2488+
**Example**
2489+
2490+
```javascript
2491+
var objImageEditor = DWObject.Viewer.createImageEditor(editorSettings?:EditorSettings);
2492+
objImageEditor.save():Promise<void>;
2493+
```
2494+
2495+
24532496
---
24542497

24552498
## selectionMode

info/schedule/Stable.md

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,58 @@ permalink: /info/schedule/Stable.html
1717
#### WIA Scanner Support
1818
- Added support for direct control of WIA drivers. <!-- Please see Insert link to FAQ -->
1919

20+
<!-- #### Remote Scan
21+
22+
-->
23+
2024
### Improvements
21-
- ConvertToBW algorthim optimization
22-
- IfShowProgressBar now covers both transfer operations and encode/decode operations
25+
#### General Improvements
26+
- Improved licence verification logic to support Remote Scan
27+
- Added workMode to ImageEditor
28+
-
2329

24-
#### Viewer
30+
#### Resource Files
2531
- 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.
2632

27-
#### WebViewer
28-
- Replaced the webviewer to align with previous conventions
33+
#### ImageEditor
34+
- The ImageEditor has been re-architected for better speed and image quality.
35+
- You can now apply a workMode customization when using ImageEditor (not supported for RemoteScan)
36+
- Original mode - The data is processed on the server side first, and then displayed in the viewer
37+
- New model - The data is processed in the canvas and then updated to the server side
2938

3039
#### Android Service
3140
- The Android service is available on the Google [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan)
3241
- Enhancements to the Android Service and supported APIs
3342

34-
### Deprecations
35-
36-
- IfShowCancelDialogWhenImageTransfer
37-
- Now controlled by IfShowProgressBar
38-
39-
#### API Removals
40-
- RemoveAllAuthorizations
41-
- OnWebTwainNotFound
42-
- OnWebTwainReady
43-
- OnWebTwainWillInit
44-
43+
### API Changes
44+
#### General Changes
45+
- Changed IfShowProgressBar to control the progress indicators for all encoding, decoding, and transfer operations.
46+
- IfShowCancelDialogWhenImageTransfer scope reduced to only control propmts for user cancellable operations.
47+
- IfShowProgressBar must be enabled for IfShowCancelDialog to take effect
48+
49+
#### New APIs
50+
- Added ShareImages() for the Android Service
51+
- Added the following under the Viewer class:
52+
- crop()
53+
- rotate()
54+
- errorCode
55+
- errorString
56+
- ImageEditor
57+
- Added the enum WorkMode
58+
- Added .save() to the ImageEditor object
59+
60+
#### Enumeration Changes
61+
- EnumDWT_DeviceType updated to support WIA scanning.
62+
- Supported WIA devices will be labelled WIA
63+
- Unsupported WIA devices will be labelled WIATWAIN
64+
65+
<!--
66+
-->
4567
### Bugfixes
4668
32507 - MacOS issue with ShowFileDialog
4769

4870
### Known Issues
71+
- Image Editor Undo/Redo is not implemented in this version.
4972

5073
## 18.1 (01/12/2023)
5174

0 commit comments

Comments
 (0)