Licensing

Sometimes, to study the system better, you want to dive into the code as fast as possible. To make this easier, GroupDocs.Comparison provides different purchase plans or offers a Free Trial and a 30-day Temporary License for evaluation.

Note
Note that there are several general policies and practices that guide you on how to evaluate, properly license, and purchase our products. You can find them in the “Purchase Policies and FAQ” section.

Free Trial or Temporary License

You can try GroupDocs.Comparison without buying a license.

Free Trial

The evaluation version is the same as the purchased one – the evaluation version simply becomes licensed when you set the license. You can set the license in several ways that are described in the next sections of this article.

The evaluation version comes with the following limitations:

  • Only the first 2 pages can be processed.
  • Trial badges are placed in the document on the top of each page.

Temporary License

If you wish to test GroupDocs.Comparison without the limitations of the trial version, you can also request a 30-day Temporary License. For details, see the “Get a Temporary License” page.

How to set up a license

Note
You can find the pricing information on the “Pricing Information” page.

After getting the license, you need to set it. This section describes different ways to set the license.

The license should be set:

  • Only once per application domain.
  • Before using any other GroupDocs.Comparison classes.
Note
The license can be set multiple times per application domain, but we recommend doing it once since all the subsequent calls to the set_license method except for the first one will just waste processor time.

Set License from File

The following code snippet shows how to set a license from a file:

import groupdocs.comparison as gc
license = gc.License()
license.set_license(license_path)

Set License from Stream

The following code snippet shows how to set a license from a stream:

import groupdocs.comparison as gc
import os
from os.path import join

def run():
    if os.path.exists(license_path):
        with open(license_path, "rb") as stream:
            gc.License().set_license(stream)

Set Metered License

A Metered License is also available as an alternative to a traditional license file. It is a usage-based licensing model that may be more suitable for customers who prefer to be billed based on actual API feature usage. For more information, refer to the Metered Licensing FAQ.

The following sample demonstrates how to use metered licensing:

from groupdocs.comparison import Metered

def set_metered_license():
    # Set your public and private keys
    public_key = "******" 
    private_key = "******" 

    # Instantiate Metered and set keys
    metered = Metered()
    metered.set_metered_key(public_key, private_key)

    # Get a number of MBs processed 
    mb_processed = metered.get_consumption_quantity()
    print("MB processed: ", mb_processed)

    # Get a number of credits used
    credits_used = metered.get_consumption_credit()
    print("Credits used: ", credits_used)

if __name__ == "__main__":
    set_metered_license()
Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.