Table of Contents

Method AddLicenseData

Namespace
BitMiracle.Docotic
Assembly
BitMiracle.Docotic.Pdf.dll

AddLicenseData(string)

Adds license data to the Docotic.Pdf library.

public static void AddLicenseData(string licenseKey)

Parameters

licenseKey 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 adding 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 recommend adding license data in Global.asax.cs. In ASP.NET Core apps, we recommend using Program.cs for the same.

You can use HasValidLicense property in any part of your app to make sure a license is applied and is valid.

AddLicenseData(string, string)

Adds license data to the Docotic.Pdf library.

public static void AddLicenseData(string licenseKey, string owner)

Parameters

licenseKey string

License key.

owner string

The license owner.

Remarks

We recommend adding 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 recommend adding license data in Global.asax.cs. In ASP.NET Core apps, we recommend using Program.cs for the same.

You can use HasValidLicense property in any part of your app to make sure a license is applied and is valid.