Quick start

From download to your first PDF

Three steps and about five minutes. Pick the package that matches your stack and the install line and first program appear below — both exactly as they ship in the download.

Choose your stack
Choose a different stack

1. Install NuGet package

shell
dotnet add package LumasPDF.Net

2. Write a PDF

The smallest complete program: create the document, write to it, close it.

csharp
using LumasPdf;

var pdf = new PdfEngine();
pdf.CreatePDF("hello.pdf");
pdf.Append();
pdf.SetFont("Helvetica", FontStyle.None, 24, true, CodePage.Cp1252);
pdf.WriteFText(TextAlign.Center, "Hello from LumasPDF");
pdf.EndPage();
pdf.CloseFile();

3. Remove the watermark when you are ready

Everything above works with no key at all. Output carries an evaluation watermark until a key is applied — nothing else is limited, and there is no time limit on trying it.

This package
NuGet package

One package, native engines for every runtime identifier.

Licence covers

win-x86 win-x64 win-arm64 linux-x64 linux-arm64 macos

If the first program does not run

Almost every first-run problem is the same one: the process cannot find the engine library, or it found one built for the other bitness. The package page for your stack lists what has to sit where, and the knowledge base has the platform-specific version of that answer.