@@ -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
7676Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
7777Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";
7878await 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
124122Dynamsoft .DWT .ProductKey = " DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" ;
123+ Dynamsoft .DWT .UseDefaultViewer = false ;
124+ Dynamsoft .DWT .ResourcesPath = " https://cdn.jsdelivr.net/npm/dwt@latest/dist" ;
125125
126126let 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