Evaluation Version Limitation
The evaluation version of Aspose.BarCode (without a license specified) provides full barcode generation functionality, but it shows an evaluation watermark on the barcode image.
The evaluation version of Aspose.BarCode's recognition library only supports
Code39 barcode recognition. However, a full featured demo application is provided for all supported barcode symbologies.
Setting a License
The license is a plain text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so do not modify the file; even the inadvertent addition of an extra line break into the file will invalidate it.
You need to set a license before utilizing Aspose.BarCode if you want to avoid its evaluation limitation. You are only required to set a license once per application or process.
The license can be loaded from a stream or file in the following locations:
- Explicit path.
- The folder that contains the Aspose.BarCode.jar.
Use the License.
setLicense method to license the component. Often the easiest way to set a license is to put the license file in the same folder as Aspose.BarCode.jar and specify just the file name without path as shown in the following example:
In this example Aspose.BarCode will attempt to find the license file in the folder that contain the JARs of your application.
Initializes a license from a stream.
Validate the License
It is possible to validate if the license has been set properly or not. The License class has the
isLicensed field that will return true if license has been properly set.
Applying Metered Key
Aspose.BarCode for Java allow developers to apply metered key. It is a new licensing mechanism. The new licensing mechanism will be used along with existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing. For more details, please refer to Metered Licensing FAQ section.
Metered class has been introduced to apply metered key. Following is the sample code demonstrating how to set metered public and private key.