Setting License

Hi,
We have purchased Aspose Total and are using Aspose Words, Pdf, PdfKit & Barcode in our application.
In one of the methods, I am using all of the above components.
Do I have to set license for each individual application by calling SetLicense() on each component instance?
Is there a way of setting the license in a common place like registry so that I don’t have to set the the license on each instance that I create?

Thanks,
Sudheer

Hi

Thanks for your request. You don’t need to set license for each created instance. You are only required to set a license once per application or process. Please see the following link to learn when to apply license:
https://docs.aspose.com/words/java/licensing/
But you should set license for each Aspose product independently. For example:

// Set Aspose.Words License
Aspose.Words.License awLic = new Aspose.Words.License();
awLic.SetLicense("Aspose.Custom.lic");
// Set Aspose.Pdf license
Aspose.Pdf.License apLic = new Aspose.Pdf.License();
apLic.SetLicense("Aspose.Custom.lic");

Best regards.