Skip to content

Commit dd1e3a3

Browse files
Update sdk_init.md
1 parent a9423a0 commit dd1e3a3

File tree

1 file changed

+60
-1
lines changed

1 file changed

+60
-1
lines changed

gettingstarted/sdk_init.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,80 @@ permalink: /gettingstarted/sdk_init.html
2727

2828
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.
2929

30+
<div class="multi-panel-switching-prefix"></div>
31+
32+
- [Use a CDN](#-)
33+
- [Host the SDK yourself](#--)
34+
35+
<div class="multi-panel-start"></div>
36+
37+
<div style="height: 20px;"></div>
38+
39+
3040
```javascript
3141
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; // Public trial license which is valid for 24 hours
3242
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine";// Lead to a folder containing the distributed WASM files
3343
await Dynamsoft.DDV.Core.loadWasm();
3444
await Dynamsoft.DDV.Core.init();
3545
```
3646

47+
<div class="multi-panel-end"></div>
48+
49+
<div class="multi-panel-start"></div>
50+
51+
<div style="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+
await Dynamsoft.DDV.Core.loadWasm();
58+
await Dynamsoft.DDV.Core.init();
59+
```
60+
61+
<div class="multi-panel-end"></div>
62+
63+
<div class="multi-panel-switching-end"></div>
64+
3765
### deviceFriendlyName
3866

3967
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.
4068

69+
70+
<div class="multi-panel-switching-prefix"></div>
71+
72+
- [Use a CDN](#---)
73+
- [Host the SDK yourself](#----)
74+
75+
<div class="multi-panel-start"></div>
76+
77+
<div style="height: 20px;"></div>
78+
79+
80+
4181
```javascript
4282
Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";// Public trial license which is valid for 24 hours
4383
Dynamsoft.DDV.Core.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-document-viewer@latest/dist/engine"; // Lead to a folder containing the distributed WASM files
4484
Dynamsoft.DDV.Core.deviceFriendlyName = "Dynamsoft-iPhone"; // A string representing the device which is easier to recognize than its UUID
4585
await Dynamsoft.DDV.Core.loadWasm();
4686
await Dynamsoft.DDV.Core.init();
47-
```
87+
```
88+
89+
<div class="multi-panel-end"></div>
90+
91+
<div class="multi-panel-start"></div>
92+
93+
<div style="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
100+
await Dynamsoft.DDV.Core.loadWasm();
101+
await Dynamsoft.DDV.Core.init();
102+
```
103+
104+
<div class="multi-panel-end"></div>
105+
106+
<div class="multi-panel-switching-end"></div>

0 commit comments

Comments
 (0)