Skip to content

Commit 70b1487

Browse files
authored
Merge pull request #691 from dynamsoft-docs/preview
v18.3
2 parents 9caa697 + b47faf5 commit 70b1487

File tree

19 files changed

+1540
-886
lines changed

19 files changed

+1540
-886
lines changed

_data/full_tree.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ tree_list:
4242
- name: PDF Handling
4343
path: /indepth/features/pdf.html
4444
- name: Remote Scan
45-
path: https://www.dynamsoft.com/remote-scan/docs/introduction/
45+
path: https://www.dynamsoft.com/remote-scan/docs/introduction/
46+
- name: PDF Compressor (Beta)
47+
path: /indepth/features/pdfc.html
4648
- name: Samples and Demos
4749
childList:
4850
- name: Use Web TWAIN in Angular

_includes/version-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<span class="fullVersionHistory">
22
<ul class="fullVersionInfo">
3-
<li onclick="changeVersion(this)">Latest Version (18.2)</li>
3+
<li onclick="changeVersion(this)">Latest Version (18.3)</li>
44
<li onclick="changeVersion(this)">Version 18.1</li>
55
<li onclick="changeVersion(this)">Version 18.0</li>
66
<li onclick="changeVersion(this)">Version 17.3</li>

_layouts/default-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</footer>
8181

8282
<script type="text/javascript">
83-
$(".currentVersion").text("latest version (18.2)");
83+
$(".currentVersion").text("latest version (18.3)");
8484
anchors.add();
8585
UrlReplace();
8686
FullTreeMenuList('{{page.needAutoGenerateSidebar}}', '{{page.needGenerateH3Content}}');

about/license.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can set the new key via the `ProductKey` API.
3535

3636
You can find all the full licenses you own via our <a href="https://www.dynamsoft.com/customer/license/fullLicense" target="_blank">customer portal</a>.
3737

38-
Depending on the type of full license you are using, you can add/update the full license via the `ProductKey` or `organizationID` API (available for Dynamic Web TWAIN v17.0+).
38+
Depending on the type of full license you are using, you can add/update the full license via the `ProductKey` API (available for Dynamic Web TWAIN v17.0+).
3939

4040
### Update ProductKey
4141

@@ -51,22 +51,6 @@ If you have multiple license keys, separate them with semicolons like below:
5151
Dynamsoft.DWT.ProductKey = 't0076lQAAAGNcO61He******;t0076lQAAAGNcO61He******';
5252
```
5353

54-
### Update organizationID
55-
56-
If you are using an **organizationID**, you can simply update the `organizationID` in your code.
57-
58-
``` javascript
59-
Dynamsoft.DWT.organizationID = "123456"; // replace the number 123456 with YOUR-ORGANIZATION-ID
60-
```
61-
62-
As of **version 17.3**, you can use the `ProductKey` API to specify an **organizationID**.
63-
64-
``` javascript
65-
Dynamsoft.DWT.ProductKey = "123456"; // replace the number 123456 with YOUR-ORGANIZATION-ID
66-
```
67-
68-
*Note: **ProductKey** and **organizationID** cannot be used together.*
69-
7054
## License Agreement
7155

7256
View the <a href="https://www.dynamsoft.com/Products/WebTwain_license.aspx" target="_blank">Dynamic Web TWAIN License Agreement</a>.

about/resources.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ permalink: /about/resources.html
1414

1515
* <a href="https://www.dynamsoft.com/Downloads/WebTWAIN_Download.aspx" target="_blank">Official installer</a>
1616

17-
> This official package is meant for developers to evaluate the SDK. When the package is installed, you get all the [resource files]({{site.faq}}what-are-the-resources-files.html), documentation, and samples. A 30-day free trial is included when evaluating our SDK.
17+
> This official package is meant for developers to evaluate the SDK. When the package is installed, you get all the resource files, documentation, and samples. A 30-day free trial is included when evaluating our SDK.
1818
1919
* <a href="https://www.npmjs.com/package/dwt" target="_blank">NPM package</a>
2020

21-
> All the files in the [DWT package](https://github.com/dynamsoft-dwt/web-twain-package) will help you include `Dynamic Web TWAIN` in your web application both as a regular library and as a module. To try our SDK and included samples, a [trial license](#how-do-i-get-a-trial-license) is required.
21+
> All the files in the <a href="https://github.com/Dynamsoft/Dynamic-Web-TWAIN" target="_blank">DWT package</a> will help you include `Dynamic Web TWAIN` in your web application both as a regular library and as a module. To try our SDK and included samples, a [trial license](#how-do-i-get-a-trial-license) is required.
2222
2323
* <a href="https://yarnpkg.com/package/dwt" target="_blank">YARN package</a>
2424

25-
> Similar to using NPM, you will get all the files in the [DWT package](https://github.com/dynamsoft-dwt/web-twain-package).
25+
> Similar to using NPM, you will get all the files in the <a href="https://github.com/Dynamsoft/Dynamic-Web-TWAIN" target="_blank">DWT package</a>.
2626
2727
## Sample code
2828

2929
* <a href="https://www.dynamsoft.com/Downloads/WebTWAIN-Sample-Download.aspx" target="_blank">Official samples</a>
3030

31-
> We have many prebuilt samples to demonstrate common user scenarios. All samples contain the [resource files]({{site.faq}}what-are-the-resources-files.html) required in your application. If a sample is hosted on the Dynamsoft website (not Github), then the sample comes with a 30-day free trial license as well. Otherwise, you can [get a trial license](#how-do-i-get-a-trial-license).
31+
> We have many prebuilt samples to demonstrate common user scenarios. All samples contain the resource files required in your application. If a sample is hosted on the Dynamsoft website (not Github), then the sample comes with a 30-day free trial license as well. Otherwise, you can [get a trial license](#how-do-i-get-a-trial-license).
3232
3333
* <a href="https://github.com/dynamsoft-dwt" target="_blank">Github repo</a>
3434

3535
> In our repository, we've shared many samples and other projects related to `Dynamic Web TWAIN` . Some of which may be experimental. To try out these samples, a [trial license](#how-do-i-get-a-trial-license) is required.
3636
3737
## How do I get a trial License
3838

39-
Please visit our [customer portal](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt) to request for a trial license.
39+
Please visit our <a href="https://www.dynamsoft.com/customer/license/trialLicense?product=dwt" target="_blank">customer portal</a> to request for a trial license.
4040

4141
## Online Demo
4242

assets/js/setLatestVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var versionNoteLatestVersion = "18.2"
1+
var versionNoteLatestVersion = "18.3"
22

33
$(function() {
44
$("#versionNoteLatestVersion").text(" (" + versionNoteLatestVersion + ")")

faq/what-are-the-resources-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permalink: /faq/what-are-the-resources-files.html
1515

1616
Resources files help you include Dynamic Web TWAIN in your application. The following shows the purpose of these files.
1717

18-
> *Resources* is the default name of the folder that contain these files. It can be changed. For example, in the [Dynamic Web TWAIN package](https://github.com/dynamsoft-dwt/web-twain-package), it's called *dist*.
18+
> *Resources* is the default name of the folder that contain these files. It can be changed. For example, in the <a href="https://github.com/Dynamsoft/Dynamic-Web-TWAIN" target="_blank">DWT package</a>, it's called *dist*.
1919
2020
### Default files
2121

indepth/features/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,9 @@ This section covers how to implement the key capabilities of Dynamic Web TWAIN (
4949
Learn about PDF reading & writing capabilities.
5050

5151
* [Remote Scan](https://www.dynamsoft.com/remote-scan/docs/introduction/)
52+
5253
Learn about how to use Remote Scan.
54+
55+
* [PDF Compressor (Beta)]({{site.indepth}}features/pdfc.html)
56+
57+
Learn about PDF Compressor.

indepth/features/pdfc.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: default-layout
3+
needAutoGenerateSidebar: true
4+
title: Dynamic Web TWAIN SDK Features - PDF Compressor (Beta)
5+
keywords: Dynamic Web TWAIN, Documentation, PDF Compressor
6+
breadcrumbText: PDF Compressor (Beta)
7+
description: Dynamic Web TWAIN SDK Documentation PDF Compressor
8+
permalink: /indepth/features/pdfc.html
9+
---
10+
11+
# PDF Compressor (Beta)
12+
13+
PDF Compressor is a new PDF compression technology which may help reduce the resulting file size when saving images as a PDF file. This technology is based on Dynamsoft's proprietary color clustering algorithms.
14+
Color clustering uses operates using the RGB value of each pixel in the image to cluster similarly colored pixels.
15+
16+
> This feature is only available for color or gray-scale images and requires a PDF Compressor module license.
17+
18+
## How to achieve high-quality compression
19+
### Select sharp simple images
20+
For best file fidelity post compression, please images that have the following attributes:
21+
22+
- High contrast,
23+
- Less color variety,
24+
- Concentrated distribution of similar colors,
25+
- With low complexity graphics,
26+
27+
### Things to keep in mind
28+
29+
- If the contrast between the text in the picture and the background is not high, and the weight of the text is not heavy, text may be incomplete or thin after compression.
30+
- If the source image contains complex graphics, the quality of the resulting compressed graphics may deteriorate.
31+
32+
## Sample Demo
33+
34+
To preview this feature, please see <a href="https://demo.dynamsoft.com/Samples/dwt/PDF-Compressor/PDF-Compressor.html" target="_blank">this demo</a>. Please <a href="https://www.dynamsoft.com/company/customer-service/#contact" target="_blank">contact us</a> if you have any feedback or suggestions.
35+
36+
## How to enable this feature in your code
37+
38+
**Code snippet**
39+
40+
```typescript
41+
DWObject.Addon.PDF.Write.Setup({
42+
docCompressor: {
43+
enabled: true, //Enable PDF Compressor
44+
},
45+
});
46+
//Save PDF file to local disk
47+
DWObject.SaveAllAsPDF(
48+
"testmrc.pdf", //File Name
49+
function () {
50+
console.log("successful.");
51+
},
52+
function (errorCode, errorString) {
53+
console.log(errorString);
54+
}
55+
);
56+
```

index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ permalink: /index.html
3939
- [Edit Images]({{site.indepth}}features/edit.html)
4040
- [Read Barcodes]({{site.indepth}}features/barcode.html)
4141
- [Handle PDFs]({{site.indepth}}features/pdf.html)
42+
- [Remote Scan](https://www.dynamsoft.com/remote-scan/docs/introduction/)
43+
- [PDF Compressor (Beta)]({{site.indepth}}features/pdfc.html)
4244

4345
* [API Reference]({{site.info}}api/index.html)
4446

0 commit comments

Comments
 (0)