Docs / Start here

Licensing

SoftZenPdf is commercial software with a free Community license. A license key, set once at startup, removes the evaluation banner. Keys are checked offline; SoftZenPdf never contacts a server.

Evaluation mode

Without a valid key, every feature works, but each page SoftZenPdf saves carries a small “Evaluation copy - created with SoftZenPdf” banner at the top. This applies to new documents, HTML and image conversions, merged pages and filled forms. Evaluation mode is for trying SoftZenPdf and developing with it; documents made in it may not be used in production. For a trial without the banner, start a 30-day trial in your account, where Community keys and purchased keys are also kept.

License types

LicenseWho it is forUpdates
Community (free)Individuals, and organisations with annual gross revenue under US$1 millionA year, renewed free while you remain eligible
ProfessionalAny organisation; one license per developer who works with SoftZenPdfA year, then renew for newer versions
EnterpriseAny number of developers in one organisationA year, then renew for newer versions
TrialEvaluating SoftZenPdf without the bannerEnds on its expiry date

Every license lets you deploy your applications to any number of servers, devices and end users, royalty-free. See Pricing and the license agreement.

Setting the key

Call PdfLicense.SetKey once when your application starts, before it creates documents. It applies to the whole process and returns a LicenseInfo describing the license:

Program.cs
using SoftZenPdf;

// Once, at startup, before creating documents. Keep the key out of source control:
// read it from configuration, a secret store or a file deployed with the application.
var licenseKey = File.ReadAllText("softzenpdf-license.txt");
LicenseInfo license = PdfLicense.SetKey(licenseKey);   // throws PdfLicenseException if the key is not valid
Console.WriteLine($"{license.Licensee}: {license}");

If the key is damaged, was not issued by SoftZen Systems, has expired or does not cover this version, SetKey throws PdfLicenseException with the reason, and the previous license state is kept. Line breaks and spaces pasted into the key are ignored.

Or use an environment variable

If SetKey is never called, SoftZenPdf reads the key from the SOFTZENPDF_LICENSE_KEY environment variable the first time it saves a document. This keeps the key out of your code and suits containers, CI servers and cloud hosting:

Terminal
export SOFTZENPDF_LICENSE_KEY="SZP1...."

Treat the key like other credentials: keep it out of public source code repositories. A published key can be revoked.

Checking the license

PdfLicense.Status describes the license in one line, or says why SoftZenPdf is in evaluation mode, for example when the environment variable holds a key that was rejected. Log it at startup:

Program.cs
using SoftZenPdf;

Console.WriteLine(PdfLicense.Status);   // licensed, or why SoftZenPdf is in evaluation mode
if (PdfLicense.Current is { UpdatesUntil: { } updatesUntil })
    Console.WriteLine($"Covers versions released until {updatesUntil:yyyy-MM-dd}; this one was released {PdfLicense.ReleaseDate:yyyy-MM-dd}.");

Updates and renewals

A key covers every SoftZenPdf version released on or before its UpdatesUntil date, and it keeps working with those versions forever. A version released later, compared through PdfLicense.ReleaseDate, needs a renewed key; with the old key it runs in evaluation mode, and SetKey says so. Renew before upgrading, or stay on a version your key covers.