com.groupdocs.conversion.licensing

Class License

    • Constructor Detail

      • License

        public License()
    • Method Detail

      • isValidLicense

        public static boolean isValidLicense()
      • setLicense

        public final void setLicense(InputStream licenseStream)

        Licenses the component.


         The following example demonstrates how to set a license
         passing Stream of the license file.
         
         using (FileStream licenseStream = new FileStream("LicenseFile.lic", FileMode.Open))
         {
             GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
             lic.SetLicense(licenseStream);
         }
         
        Parameters:
        licenseStream - The license stream.
      • setLicense

        public final void setLicense(String licensePath)

        Licenses the component.


         The following example demonstrates how to set a license
         passing a path to the license file.
         
         string licensePath = "GroupDocs.Conversion.lic";
         GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
         lic.SetLicense(licensePath);
         
        Parameters:
        licensePath - The license path.