You can easily download GroupDocs.Viewer for evaluation. The evaluation download is the same as the purchased download. The evaluation version simply becomes licensed when you add a few lines of code to apply the license. You will face following limitations while using the API without the license.
- Only first 2 pages are processed
- Only 15 document view per hour
- Trial badges are placed in the document on the top of each page
The license file contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. It contains the digital signature, so don't modify the file. Even inadvertent addition of an extra line break into the file will invalidate it. You need to set a license before utilizing GroupDocs.Viewer API if you want to avoid its evaluation limitations.
The license can be loaded from a file or stream object. The easiest way to set a license is to put the license file in the same folder as the GroupDocs.Viewer.jar file and specify the file name, without a path, as shown in the examples below.
Applying License from File
Following code snippet shows how to apply license from the file.
Applying License from Stream
Following code snippet shows how to apply license from the stream.
Applying Metered License
Since version 17.5.0, you can also set Metered license as an alternative to license file. It is a new licensing mechanism that will be used along with existing licensing method. It is useful for the customers who want to be billed based on the usage of the API features. For more details, please refer to Metered Licensing FAQ section.
Following is the sample code demonstrating how to set metered public and private keys.