Licensing

Aspose.OCR for Node.js via C++ is a commercially licensed product that can be used in trial (evaluation) mode.

Free trial

You can start using Aspose.OCR for Node.js via C++ right after the installation. In evaluation mode (without providing a license) you can recognize texts in any supported languages and save recognition results in any of the supported formats.

However, if you do not provide the license, only the first 300 characters from the image are recognized.

Apply a license to remove the restriction.

Getting a temporary license

A temporary license removes a limitation of the trial version for 30 days. Use it to start building a fully functional OCR application and make the final decision to purchase Aspose.OCR for Node.js via C++ later.

To request a temporary license, visit “Get a Temporary License” page.

Purchasing a license

Aspose.OCR for Node.js via C++ is licensed by the number of developers and locations (sites) where the products will be used (Developer and Site licenses).

Read License Types for details and purchase a license that best suits your needs.

Applying a license

After purchasing a license or obtaining a temporary license, you will receive a file with .lic extension. If needed, you can rename this file and change its extension.

The license must be applied only once, before recognition starts.

Method Usage
AsposeOCRSetLicenseFromData() Load a license from an array of bytes.
AsposeOCRGetState() Checks the current licensing status:
  • true - licensed
  • false - unlicensed

Examples

const Module = require("./asposeocr");
const fs = require("fs");

Module.onRuntimeInitialized = async _ => {
	// Place the license file in the project directory
	fs.readFile("Aspose.OCR.lic", (err, licenseData) => {
		const licenseBytes = new Uint8Array(licenseData);
		Module.AsposeOCRSetLicenseFromData(licenseBytes);
		// Verify licensing status
		if(Module.AsposeOCRGetState()) console.log("Licensed");
		else console.log("Unlicensed");
	});
}