You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippets are using the public trial license to initialize the license. You can replace the public trial license with your own license key.
29
29
30
+
<divclass="multi-panel-switching-prefix"></div>
31
+
32
+
-[Use a CDN](#-)
33
+
-[Host the SDK yourself](#--)
34
+
35
+
<divclass="multi-panel-start"></div>
36
+
37
+
<divstyle="height: 20px;"></div>
38
+
39
+
30
40
```javascript
31
41
Dynamsoft.DDV.Core.license="DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; // Public trial license which is valid for 24 hours
32
42
Dynamsoft.DDV.Core.engineResourcePath="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";// Lead to a folder containing the distributed WASM files
33
43
awaitDynamsoft.DDV.Core.loadWasm();
34
44
awaitDynamsoft.DDV.Core.init();
35
45
```
36
46
47
+
<divclass="multi-panel-end"></div>
48
+
49
+
<divclass="multi-panel-start"></div>
50
+
51
+
<divstyle="height: 20px;"></div>
52
+
53
+
54
+
```javascript
55
+
Dynamsoft.DDV.Core.license="DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; // Public trial license which is valid for 24 hours
56
+
Dynamsoft.DDV.Core.engineResourcePath="./node_modules/dynamsoft-document-viewer/dist/engine";// Lead to a folder containing the distributed WASM files
57
+
awaitDynamsoft.DDV.Core.loadWasm();
58
+
awaitDynamsoft.DDV.Core.init();
59
+
```
60
+
61
+
<divclass="multi-panel-end"></div>
62
+
63
+
<divclass="multi-panel-switching-end"></div>
64
+
37
65
### deviceFriendlyName
38
66
39
67
A human-readable name for the device which corresponds to its UUID is able to set during initialization. This name will appear in the device details table when you check the statistics of the according license.
40
68
69
+
70
+
<divclass="multi-panel-switching-prefix"></div>
71
+
72
+
-[Use a CDN](#---)
73
+
-[Host the SDK yourself](#----)
74
+
75
+
<divclass="multi-panel-start"></div>
76
+
77
+
<divstyle="height: 20px;"></div>
78
+
79
+
80
+
41
81
```javascript
42
82
Dynamsoft.DDV.Core.license="DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";// Public trial license which is valid for 24 hours
43
83
Dynamsoft.DDV.Core.engineResourcePath="https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine"; // Lead to a folder containing the distributed WASM files
44
84
Dynamsoft.DDV.Core.deviceFriendlyName="Dynamsoft-iPhone"; // A string representing the device which is easier to recognize than its UUID
45
85
awaitDynamsoft.DDV.Core.loadWasm();
46
86
awaitDynamsoft.DDV.Core.init();
47
-
```
87
+
```
88
+
89
+
<divclass="multi-panel-end"></div>
90
+
91
+
<divclass="multi-panel-start"></div>
92
+
93
+
<divstyle="height: 20px;"></div>
94
+
95
+
96
+
```javascript
97
+
Dynamsoft.DDV.Core.license="DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";// Public trial license which is valid for 24 hours
98
+
Dynamsoft.DDV.Core.engineResourcePath="./node_modules/dynamsoft-document-viewer/dist/engine"; // Lead to a folder containing the distributed WASM files
99
+
Dynamsoft.DDV.Core.deviceFriendlyName="Dynamsoft-iPhone"; // A string representing the device which is easier to recognize than its UUID
0 commit comments