Skip to content

Commit 96a7588

Browse files
update to internal commit 8f40d714
1 parent 016f514 commit 96a7588

File tree

8 files changed

+30
-49
lines changed

8 files changed

+30
-49
lines changed
5.87 KB
Loading

faq/debug-on-online-demo.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ With the widespread application of the Dynamic Web TWAIN SDK in the market, more
1818
**Step 1:**
1919

2020
Visit Dynamic Web TWAIN Online Demo: [https://demo.dynamsoft.com/web-twain/](https://demo.dynamsoft.com/web-twain/)
21-
Open your web browser console (f12 or right clicking and inspecting) and navigate to the console tab. From here we can make calls directly into the browser.
2221

2322
**Step 2:**
2423

@@ -38,4 +37,4 @@ And you can test the API as much as you want. Let's take the [ConvertToBase64](h
3837

3938
![image3]({{site.assets}}imgs/console_code_test.png)
4039

41-
Now that you've had the opportunity to preview how the DWT API operates in the web application, you can explore more features by reviewing the [API documentation]({{site.info}}api/).
40+
Now that you've had the opportunity to preview how the DWT API operates in the web application, you can explore more features by reviewing the [API documentation]({{site.info}}api/).

faq/download-service-only.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ For Linux users, please choose ".rpm" or ".deb" installer accordingly
3232

3333
**Step 3:**
3434
Click on the "View Raw" button, it will start to download the installer.
35-
![download_raw]({{site.assets}}imgs/download_view_raw.png)
35+
![download_raw]({{site.assets}}imgs/download_view_raw.png)

faq/flexible-to-custom-license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ permalink: /faq/flexible-to-custom-license.html
1313

1414
## Are you flexible to discuss custom licensing models?
1515

16-
Yes. We understand our standard options may not cover your need, so we are very flexible with different licensing metrics to best serve your business. Please submit your request via <a href="https://www.dynamsoft.com/store/dynamic-web-twain/" target="_blank">this form</a> or directly <a href="https://www.dynamsoft.com/contact/" target="_blank">contact us</a>.
16+
Yes. We understand our standard options may not cover your need, so we are very flexible with different licensing metrics to best serve your business. Please submit your request via <a href="" target="_blank">this form</a> or directly <a href="" target="_blank">contact us</a>.

info/api/Addon_PDF.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Use this method before you import a PDF into the viewer with methods such as <a
305305
```javascript
306306
DWTObject.Addon.PDF.SetReaderOptions({
307307
convertMode: Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL,
308-
preserveUnmodifiedOnSave: true
308+
preserveUnmodifiedOnSave: true //only available for v19.0+
309309
});
310310
```
311311

info/api/interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ interface ReaderOptions {
16681668
renderGrayscale?: boolean;
16691669
}
16701670
/**
1671-
* Set whether to preserve original file size when saving an unedited PDF. Default value: false.
1671+
* Set whether to preserve original file size when saving an unedited PDF whose pages were not modified under any raster operations. Default value: false.
16721672
*/
16731673
preserveUnmodifiedOnSave?: boolean;
16741674
}

info/api/restful.md

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ fetch(url, requestOptions)
793793

794794
|HTTP Status Code |Meaning|Description|Data Schema|
795795
|---|---|---|---|
796-
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Successful operation.|capability list|
796+
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Successful operation.|[`CapabilityDetails`]({{ site.api }}Interfaces.html#capabilitydetails)|
797797
|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|Bad request, e.g. parameter is invalid.|[`Error`](#error)|
798798
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|The provided job UID is invalid.|[`Error`](#error)|
799799
|405|[Method Not Allowed](https://tools.ietf.org/html/rfc7231#section-6.5.5)|Method not allowed.|[`Error`](#error)|
@@ -1819,24 +1819,13 @@ Create a new document process to read a barcode on a scanned page.
18191819

18201820
Barcode scanning requires a valid Barcode Reader Add-On license. Blank page detection is only supported on Windows.
18211821

1822-
> Body Parameters
1823-
1824-
```json
1825-
{
1826-
"settings": {
1827-
"minBlockHeight": 20,
1828-
"maxBlockHeight": 30
1829-
},
1830-
"source": "https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282"
1831-
}
1832-
```
1833-
18341822
#### Parameters
18351823

18361824
|Name|Location|Type|Required|Restrictions|Description|
18371825
|---|---|---|---|---|---|
18381826
|`X-DICS-LICENSE-KEY`|header|`string`| yes | none |A DWT license key with the Barcode Reader and RESTful API module. Contact our [sales team](https://www.dynamsoft.com/company/contact/) for a full license, or get a [30-day free trial](https://www.dynamsoft.com/web-twain/downloads/).|
1839-
|`body`|body|[`CreateProcessOptions`](#createprocessoptions)| no |none|
1827+
|`source`|body|`string`| yes |Scan job URL |Image source URL from the scan job, e.g. `https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282`.|
1828+
|`settings`|body|`string`| Valid barcode reading template JSON - see [`RuntimeSettings`]({{ site.api }}Interfaces.html#runtimesettings) for more details |no| Barcode reader template settings. Defaults to the `BestCoverage` setting by default. The basic settings are `BestCoverage`, `BestSpeed`, and `Balance`. Read the Barcode Reader Add-On guide for details on [basic settings]({{ site.extended-usage }}barcode-processing.html#built-in-modes) and advanced [scanning templates]({{ site.extended-usage }}barcode-processing.html#set-the-runtime-settings-using-json).|
18401829

18411830
#### Request Example:
18421831

@@ -1931,23 +1920,12 @@ Create a new document process to check if a scanned page is blank.
19311920

19321921
Blank page detection is **only supported on Windows**.
19331922

1934-
> Body Parameters
1935-
1936-
```json
1937-
{
1938-
"settings": {
1939-
"minBlockHeight": 20,
1940-
"maxBlockHeight": 30
1941-
},
1942-
"source": "https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282"
1943-
}
1944-
```
1945-
19461923
#### Parameters
19471924

19481925
|Name|Location|Type|Required|Restrictions|Description|
19491926
|---|---|---|---|---|---|
19501927
|`source`|body|`string`| yes |Scan job URL |Image source URL from the scan job, e.g. `https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282`.|
1928+
|`settings`|body|[`CheckBlankSettings`](#checkblanksettings)| no |none |Maximum and minimum blemish pixel height detection thresholds.|
19511929

19521930
#### Request Example:
19531931

@@ -1962,6 +1940,10 @@ let myHeaders = new Headers();
19621940
myHeaders.append("Content-Type", "application/json");
19631941

19641942
let raw = JSON.stringify({
1943+
settings: {
1944+
"minBlockHeight": 20,
1945+
"maxBlockHeight": 30
1946+
},
19651947
source: 'https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282',
19661948
});
19671949

@@ -2270,15 +2252,12 @@ Currently, only return log level.
22702252
|---|---|---|---|---|
22712253
|`password`|`string`|false|none|length <= 32 characters |The password of the document (32 characters max).|
22722254

2273-
### `CreateProcessOptions`
2255+
### `VersionInfo`
22742256

22752257
```json
22762258
{
2277-
"settings": {
2278-
"minBlockHeight": 20,
2279-
"maxBlockHeight": 30
2280-
},
2281-
"source": "https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282"
2259+
"version": "20240719",
2260+
"compatible": true
22822261
}
22832262

22842263
```
@@ -2287,15 +2266,15 @@ Currently, only return log level.
22872266

22882267
|Name|Type|Required|Restrictions|Description|
22892268
|---|---|---|---|---|
2290-
|`settings`|`object`|no| - `coverage`: high reading accuracy<br/> - `speed`: high reading speed<br/> - `balance`: balance between `coverage` and `speed`<br/> - JSON: custom scanning template |Barcode reader template settings. Defaults to the `coverage` setting by default. The basic settings are `coverage`, `speed`, and `balance`. Read the Barcode Reader Add-On guide for details on [basic settings]({{ site.extended-usage }}barcode-processing.html#built-in-modes) and advanced [scanning templates]({{ site.extended-usage }}barcode-processing.html#set-the-runtime-settings-using-json).|
2291-
|`source`|`string`|true|Image source URL from the scan job, e.g. `https://127.0.0.1:18623/api/device/scanners/jobs/dd40716d-48d1-4d32-89f7-1d53f9665d91/next-page?page=19522d0c5282`.||
2269+
|`version`|`string`|false|none|server api version.|
2270+
|`compatible`|`boolean`|false|none|server is compatible with the client.|
22922271

2293-
### `VersionInfo`
2272+
### `CheckBlankSettings`
22942273

22952274
```json
2296-
{
2297-
"version": "20240719",
2298-
"compatible": true
2275+
"settings": {
2276+
"minBlockHeight": 20,
2277+
"maxBlockHeight": 30
22992278
}
23002279

23012280
```
@@ -2304,8 +2283,8 @@ Currently, only return log level.
23042283

23052284
|Name|Type|Required|Restrictions|Description|
23062285
|---|---|---|---|---|
2307-
|`version`|`string`|false|none|server api version.|
2308-
|`compatible`|`boolean`|false|none|server is compatible with the client.|
2286+
|`minBlockHeight`|`number`|true|0 < `minBlockHeight` <= `maxBlockHeight`|Minimum blemish pixel height detection threshold.|
2287+
|`maxBlockHeight`|`number`|true|`minBlockHeight` <= `maxBlockHeight`|Maximum blemish pixel height detection threshold.|
23092288

23102289
### `ScannerJobStatus`
23112290

info/schedule/Stable.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permalink: /info/schedule/Stable.html
1717

1818
- **Greatly expanded support for the [RESTful Dynamic Web TWAIN Service]({{ site.extended-usage }}restful-api.html).**
1919
- **PDF Handling**:
20-
- Added new PDF Rasterizer Add-On API [`preserveUnmodifiedOnSave`]({{ site.api }}Addon_PDF.html#setreaderoptions) to preserve the size of text-based PDFs when loading and re-saving without modifying the pages with DWT.
20+
- Added new PDF Rasterizer Add-On API [`preserveUnmodifiedOnSave`]({{ site.api }}interfaces.html#readeroptions) to preserve the size of unmodified PDF pages when saving.
2121
- Added new PDF Rasterizer Add-On API [`IsRasterizationRequired()`]({{ site.api }}Addon_PDF.html#israsterizationrequired). This API returns true if the PDF Rasterizer Add-On is needed to process the PDF. Note that this requires a license for the PDF Rasterizer Add-On.
2222
- **Cross-platform support**: Added macOS and Linux platform support for DWT Barcode Reader Add-On version 9.6.
2323
- **Error messages**: Added more informative error messages with the new [`ErrorCause`]({{ site.api }}WebTwain_Util.html#errorcause) API.
@@ -26,9 +26,9 @@ permalink: /info/schedule/Stable.html
2626
### Improvements
2727

2828
- **Security enhancements**: updated third-party libraries to enhance security.
29-
- **Image rasterization logic**: when both [`ReaderOptions.renderOptions.maxWidth/ ReaderOptions.renderOptions.maxHeight and resolution`]({{ site.api }}Addon_PDF.html#setreaderoptions) are set, if the dimensions of the rendered image exceed the maximum width and height, use the resolution applied during the image rendering process rather than the set resolution.
29+
- **Image rasterization logic**: when both [`ReaderOptions.renderOptions.maxWidth/ ReaderOptions.renderOptions.maxHeight and resolution`]({{ site.api }}interfaces.html/setreaderoptions) are set, if the dimensions of the rendered image exceed the maximum width and height, use the resolution applied during the image rendering process rather than the set resolution.
3030
- **New Dynamic Web TWAIN Service installation path for Windows**: moved installation out of `SysWOW64` and `System32` on Windows to prevent rare false positive antivirus scans.
31-
- New 64-bit system-wide installations: `C:\Program Files\Dynamsoft (x86)\Dynamic Web TWAIN Service 19`
31+
- New 64-bit system-wide installations: `C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN Service 19`
3232
- New 32-bit system-wide installation location: `C:\Program Files\Dynamsoft\Dynamic Web TWAIN Service 19`
3333
- Changed `ErrorString` messages associated with `ErrorCode -2003` for `HTTPUpload`-related APIs to include HTTP codes in the form of `HTTP process: {message}({HTTP status code})`, e.g. `HTTP process: OK(200)`. This change applies to `ErrorString` for the following APIs:
3434

@@ -39,6 +39,9 @@ permalink: /info/schedule/Stable.html
3939
- [`{WebTwainObject}.HTTPUploadAllThroughPostAsPDF()`]({{ site.api }}WebTwain_IO.html#httpuploadallthroughpostaspdf)
4040
- [`{WebTwainObject}.HTTPUploadThroughPostAsMultiPagePDF()`]({{ site.api }}WebTwain_IO.html#httpuploadthroughpostasmultipagepdf)
4141
- [`{WebTwainObject}.HTTPUploadThroughPostAsMultiPageTIFF()`]({{ site.api }}WebTwain_IO.html#httpuploadthroughpostasmultipagetiff)
42+
- **Enhance the customizability of thumbnail viewer**: add a position property to its [event]({{ site.api }}interfaces.html#thumbnailviewerevent) to facilitate the customization. For example, we can add a delete icon when the mouse is over it.
43+
44+
![thumbnail viewer event](/assets/imgs/thumbnail-viewer-event-demo.jpg)
4245

4346
### Removed Features
4447

0 commit comments

Comments
 (0)