// Load license keys from environment variables or configurationvarpublicKey=Environment.GetEnvironmentVariable("GD_PUBLIC_KEY");varprivateKey=Environment.GetEnvironmentVariable("GD_PRIVATE_KEY");// Apply the licenseLicense.Set(publicKey,privateKey);// Now perform conversions without evaluation limitationsusing(varconverter=newDocxToPdfConverter("sample.docx")){converter.Convert("output.pdf");}
Example 2: Setting license from file
// Set license from file pathLicense.Set("C:\\Licenses\\GroupDocs.Conversion.LowCode.lic");// Perform conversionusing(varconverter=newHtmlToPdfConverter("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 converterusing(varconverter=newPdfToDocxConverter("sample.pdf")){converter.Convert("output.docx");}