Skip to content

Commit a2e7457

Browse files
update to internal commit 53a85658
1 parent 8ee1b57 commit a2e7457

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

faq/dwt-with-annotation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ Links to API Reference:
119119
// Create Dynamic Web TWAIN object
120120
// Public trial license which is valid for 24 hours
121121
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwtddv
122-
Dynamsoft.DWT.UseDefaultViewer = false;
123-
Dynamsoft.DWT.ResourcesPath = "https://cdn.jsdelivr.net/npm/dwt@latest/dist";
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
@@ -294,7 +294,8 @@ let DWObject, editViewer, ddvDoc;
294294
// Dynamsoft Document Viewer
295295
// Public trial license which is valid for 24 hours
296296
// You can request a 30-day trial key from https://www.dynamsoft.com/customer/license/trialLicense/?product=dwtddv
297-
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
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=dwtddv
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)