Skip to content

Commit a75d7cf

Browse files
authored
Merge pull request #850 from dynamsoft-docs/preview
update to internal commit a4eb2d0f
2 parents 3f8ccde + a2e7457 commit a75d7cf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

faq/dwt-with-annotation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Define the following elements:
7272
```javascript
7373
// Dynamsoft Document Viewer
7474
// Public trial license which is valid for 24 hours
75-
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc
75+
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwtddv
7676
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
7777
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";
7878
await Dynamsoft.DDV.Core.init();
@@ -118,10 +118,10 @@ Links to API Reference:
118118
```javascript
119119
// Create Dynamic Web TWAIN object
120120
// Public trial license which is valid for 24 hours
121-
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt
122-
Dynamsoft.DWT.UseDefaultViewer = false;
123-
Dynamsoft.DWT.ResourcesPath = "https://cdn.jsdelivr.net/npm/dwt@latest/dist";
121+
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwtddv
124122
Dynamsoft.DWT.ProductKey = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
123+
Dynamsoft.DWT.UseDefaultViewer = false;
124+
Dynamsoft.DWT.ResourcesPath = "https://cdn.jsdelivr.net/npm/dwt@latest/dist";
125125

126126
let DWObject;
127127
// Create a Dynamic Web TWAIN instance without the built-in viewer
@@ -293,8 +293,9 @@ let DWObject, editViewer, ddvDoc;
293293
(async function(){
294294
// Dynamsoft Document Viewer
295295
// Public trial license which is valid for 24 hours
296-
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=mwc
297-
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
296+
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwtddv
297+
let license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
298+
Dynamsoft.DDV.Core.license = license;
298299
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";
299300
await Dynamsoft.DDV.Core.init();
300301
@@ -315,11 +316,10 @@ let DWObject, editViewer, ddvDoc;
315316
editViewer.openDocument(ddvDoc.uid);
316317
317318
// Create Dynamic Web TWAIN object
318-
// Public trial license which is valid for 24 hours
319-
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwt
319+
Dynamsoft.DWT.ProductKey = license;
320320
Dynamsoft.DWT.UseDefaultViewer = false;
321321
Dynamsoft.DWT.ResourcesPath = "https://cdn.jsdelivr.net/npm/dwt@latest/dist";
322-
Dynamsoft.DWT.ProductKey = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
322+
323323
// Create a Dynamic Web TWAIN instance without the built-in viewer
324324
Dynamsoft.DWT.CreateDWTObjectEx({
325325
WebTwainId: "dwtId",

0 commit comments

Comments
 (0)