LicenseManager.AddLicenseData Method (String)

Adds license data to the Docotic.Pdf library.

Namespace:  BitMiracle.Docotic
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static void AddLicenseData(
	string licenseKey
)
VB
Public Shared Sub AddLicenseData ( 
	licenseKey As String
)

Parameters

licenseKey
Type: System.String
License key

Remarks

You can use this method multiple times if you have several licenses which you use in one code base (usually, it's the case for a server application running on multiple servers).

We recommend to add all license data at the start of your application. It is not recommended to call this method each time before you create a PdfDocument instance.

In classic ASP.NET apps we recommended to add license data in Global.asax.cs. In ASP.NET Core apps we recommend to use Startup.cs for the same.

See Also