Documentation
Table of contents

License Initialization

Get a License

Trial License

To test Dynamsoft SDKs, request a 30-day trial license through the Request a Trial License link.

Note that the trial you get will support all the following products:

  1. Dynamsoft Barcode Reader
  2. Dynamsoft Document Normalizer
  3. Dynamsoft Label Recognizer
  4. Dynamsoft Camera Enhancer
  5. Dynamsoft Code Parser

Full License

For using Dynamsoft SDKs in production, Contact us to purchase a full license.

Activate the License

The following code snippets demonstrate how to activate a license.

  • JavaScript
  • C++
  • Android
  • Objective-C
  • Swift
  • C#
  • Python
Dynamsoft.License.LicenseManager.initLicense("--Enter Your License Key Here--");
int errorCode = 0;
char szErrorMsg[256];
errorCode = CLicenseManager::InitLicense("--Enter Your License Key Here--", szErrorMsg, 256);
if (errorCode != DM_OK)
   cout << szErrorMsg << endl;
LicenseManager.initLicense("--Enter Your License Key Here--", MainActivity.this, new LicenseVerificationListener() {
   @Override
   public void licenseVerificationCallback(boolean isSuccess, CoreException error) {
          if(!isSuccess){
             error.printStackTrace();
          }
   }
});
[DynamsoftLicenseManager initLicense:@"--Enter Your License Key Here--" verificationDelegate: self];
- (void)licenseVerificationCallback:(BOOL)isSuccess error:(NSError *)error{
   // Add your code to execute when license verification call back is handled.
}
DynamsoftLicenseManager.initLicense("--Enter Your License Key Here--", verificationDelegate: self)
func licenseVerificationCallback(_ isSuccess: Bool, error: Error?) {
   // Add your code to execute when license verification call back is handled.
}
int errorCode = 0;
string errorMsg;
errorCode = LicenseManager.InitLicense("--Enter Your License Key Here--", out errorMsg);
if (errorCode != (int)EnumErrorCode.EC_OK && errorCode != (int)EnumErrorCode.EC_LICENSE_CACHE_USED)
{
    Console.WriteLine("License initialization error: " + errorMsg);
}
else
{
    CaptureVisionRouter cvr = new CaptureVisionRouter();
    // add code for further process
}
error_code, error_msg = LicenseManager.init_license("--Enter Your License Key Here--")
if error_code != EnumErrorCode.EC_OK.value and error_code != EnumErrorCode.EC_LICENSE_CACHE_USED.value:
    print("License initialization error: " + error_msg)
else:
    CaptureVisionRouter cvr = new CaptureVisionRouter()
    # add code for further process

This page is compatible for:

Is this page helpful?

YesYes NoNo