Skip to content

Commit c2a8069

Browse files
fix bug: license page
1 parent b8e30a1 commit c2a8069

File tree

6 files changed

+153
-4
lines changed

6 files changed

+153
-4
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dcv_parameters: /capture-vision/docs/core/parameters/
3232
parameters_reference: /capture-vision/docs/core/parameters/reference/
3333
parameters_ddn: /document-normalizer/docs/core/parameters/
3434
parameters_reference_ddn: /document-normalizer/docs/core/parameters/reference/
35-
license: /capture-vision/docs/core/license/
35+
license: /document-normalizer/docs/core/license-activation/
3636

3737
useVersionTree: true
3838

_includes/sidelist-license.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<li><a href="{{ site.license }}license-activation.html" class="otherLinkColour">License Activation</a></li>
1+
<li><a href="{{ site.license }}" class="otherLinkColour">License Activation</a></li>

index-v1.0.21.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ USEFUL RESOURCES
3636
<hr>
3737

3838
* [Release Notes]({{ site.release_notes }})
39-
* [License Activation]({{ site.license }}license-activation.html)
39+
* [License Activation]({{ site.license }})

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ USEFUL RESOURCES
3434
<hr>
3535

3636
* [Release Notes]({{ site.release_notes }})
37-
* [License Activation]({{ site.license }}license-activation.html)
37+
* [License Activation]({{ site.license }})
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
layout: default-layout
3+
title: License initialization - Dynamsoft Document Normalizer
4+
description: This is the documentation - License initialization page of Dynamsoft Document Normalizer.
5+
keywords: Document Normalizer, License initialization
6+
needAutoGenerateSidebar: true
7+
breadcrumbText: License Initialization
8+
---
9+
10+
# License initialization
11+
12+
## Get a trial key
13+
14+
- A free public trial license is available for every new device for first use of Dynamsoft Document Normalizer. The public trial license is the default key used in samples. You can also find the public trial license on the following parts of this page.
15+
- If your free key is expired, please visit <a href="https://www.dynamsoft.com/customer/license/trialLicense?product=ddn&utm_source=docs" target="_blank">Private Trial License Page</a> to get a 30-day trial extension.
16+
17+
## Get a full license
18+
19+
- [Contact us](https://www.dynamsoft.com/company/contact/) to purchase a full license
20+
21+
## Initialize the license
22+
23+
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.
24+
25+
<div class="sample-code-prefix"></div>
26+
>- JavaScript
27+
>- Java-Android
28+
>- Objective-C
29+
>- Swift
30+
>- C
31+
>- C++
32+
>
33+
>1.
34+
```javascript
35+
Dynamsoft.DDN.DocumentNormalizer.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
36+
```
37+
2.
38+
```java
39+
LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", MainActivity.this, new LicenseVerificationListener() {
40+
@Override
41+
public void licenseVerificationCallback(boolean isSuccess, CoreException error) {
42+
if(!isSuccess){
43+
error.printStackTrace();
44+
}
45+
}
46+
});
47+
```
48+
3.
49+
```objc
50+
[DynamsoftLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate: self];
51+
- (void)licenseVerificationCallback:(BOOL)isSuccess error:(NSError *)error{
52+
// Add your code to execute when license verification call back is handled.
53+
}
54+
```
55+
4.
56+
```swift
57+
DynamsoftLicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", verificationDelegate: self)
58+
func licenseVerificationCallback(_ isSuccess: Bool, error: Error?) {
59+
// Add your code to execute when license verification call back is handled.
60+
}
61+
```
62+
5.
63+
```c
64+
char errorMessage[256];
65+
DC_InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
66+
```
67+
6.
68+
```cpp
69+
char errorMessage[256];
70+
CLicenseManager::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
71+
```

license-activation/index.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
layout: default-layout
3+
title: License initialization - Dynamsoft Document Normalizer
4+
description: This is the documentation - License initialization page of Dynamsoft Document Normalizer.
5+
keywords: Document Normalizer, License initialization
6+
needAutoGenerateSidebar: true
7+
breadcrumbText: License Initialization
8+
---
9+
10+
# License initialization
11+
12+
## Get a trial key
13+
14+
- A free public trial license is available for every new device for first use of Dynamsoft Document Normalizer. The public trial license is the default key used in samples. You can also find the public trial license on the following parts of this page.
15+
- If your free key is expired, please visit <a href="https://www.dynamsoft.com/customer/license/trialLicense?product=ddn&utm_source=docs" target="_blank">Private Trial License Page</a> to get a 30-day trial extension.
16+
17+
## Get a full license
18+
19+
- [Contact us](https://www.dynamsoft.com/company/contact/) to purchase a full license
20+
21+
## Initialize the license
22+
23+
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.
24+
25+
<div class="sample-code-prefix"></div>
26+
>- JavaScript
27+
>- Java-Android
28+
>- Objective-C
29+
>- Swift
30+
>- C
31+
>- C++
32+
>
33+
>1.
34+
```javascript
35+
Dynamsoft.DDN.DocumentNormalizer.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
36+
```
37+
2.
38+
```java
39+
LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", MainActivity.this, new LicenseVerificationListener() {
40+
@Override
41+
public void onLicenseVerified(boolean b, Exception e) {
42+
if(!b && e != null){
43+
e.printStackTrace();
44+
}
45+
}
46+
});
47+
```
48+
3.
49+
```objc
50+
[DSLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate:self];
51+
- (void)onLicenseVerified:(bool)isSuccess error:(NSError *)error{
52+
if(!isSuccess && error != nil){
53+
NSString* msg = error.userInfo[NSUnderlyingErrorKey];
54+
NSLog(@"%@", msg);
55+
}
56+
}
57+
```
58+
4.
59+
```swift
60+
LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9",verificationDelegate:self)
61+
func onLicenseVerified(_ isSuccess: Bool, error: Error?) {
62+
if(!isSuccess && error != nil){
63+
let err = error as NSError?
64+
let msg = err!.userInfo[NSUnderlyingErrorKey] as? String
65+
print(msg ?? "")
66+
}
67+
}
68+
```
69+
5.
70+
```c
71+
char errorMessage[256];
72+
DC_InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
73+
```
74+
6.
75+
```cpp
76+
char errorMessage[256];
77+
CLicenseManager::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
78+
```

0 commit comments

Comments
 (0)