Click or drag to resize

Licensing

A license key is generated for each purchase. It holds the product, the version and the license type, and is associated with the order. An ExpertPdf Anywhere license key is valid for ExpertPdf Anywhere version 22.

Without a license key the library runs in evaluation mode: it works fully and stamps an evaluation notice on every page it produces (the PDF to text converter adds the notice to the extracted text). A key that is set but not valid - one that cannot be read, is for another product or version, or has expired - makes the next conversion or save throw LicenseException.

Setting the license key once

Set LicenseKey once, when the application starts. It unlocks every class of the library: the converters, the PDF document, merge, split, security, forms, redaction and the PDF to text and image tools.

ExpertPdf.Anywhere.LicensingManager.LicenseKey = "your license key";
Setting the license key on an object

The classes also have a LicenseKey property of their own, for example LicenseKey. When it is set, the object uses it instead of the key of the licensing manager.

ExpertPdf.Anywhere.HtmlToPdf.PdfConverter pdfConverter =
    new ExpertPdf.Anywhere.HtmlToPdf.PdfConverter();
pdfConverter.LicenseKey = "your license key";
See Also