1. Home
  2. /
  3. GroupDocs.Conversion.LowCode
  4. /
  5. GroupDocs.Conversion.LowCode
  6. /
  7. License

License class

Manages the GroupDocs.Conversion.LowCode plugin license, enabling full functionality and removing evaluation limitations.

public static class License

Public Members

namedescription
static Set(…)Sets the license from a license file. (2 methods)

Remarks

Important: License should be set only once per application, ideally at startup before performing any conversions.

Evaluation Limitations: Without a license, the library operates in evaluation mode with the following limitations:

  • Only the first 3 pages are processed
  • Trial watermarks are applied to each page

License Application Methods:

  • Set to set public & private keys directly
  • Set to load a license file from disk or project root
  • Automatic license loading: Place a .lic file in the project root directory

Internet Connection Required: License validation requires an active internet connection.

For support and temporary licenses, visit: GroupDocs LowCode Support Forum

Examples

Example 1: Setting license by keys

// Load license keys from environment variables or configuration
var publicKey = Environment.GetEnvironmentVariable("GD_PUBLIC_KEY");
var privateKey = Environment.GetEnvironmentVariable("GD_PRIVATE_KEY");

// Apply the license
License.Set(publicKey, privateKey);

// Now perform conversions without evaluation limitations
using (var converter = new DocxToPdfConverter("sample.docx"))
{
    converter.Convert("output.pdf");
}

Example 2: Setting license from file

// Set license from file path
License.Set("C:\\Licenses\\GroupDocs.Conversion.LowCode.lic");

// Perform conversion
using (var converter = new HtmlToPdfConverter("sample.html"))
{
    converter.Convert("output.pdf");
}

Example 3: Automatic license loading

// Simply place GroupDocs.Conversion.LowCode.lic in your project root
// The license will be automatically applied when you create a converter
using (var converter = new PdfToDocxConverter("sample.pdf"))
{
    converter.Convert("output.docx");
}

See Also