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 Windows C/C++

batch
unzip windows-cpp.zip
cl /I include your_app.c win64\LumasPdf.lib

2. Write a PDF

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

c
#include "lumaspdf.h"

int main(void) {
    void *pdf = pdfCreatePDF("hello.pdf");
    pdfAppend(pdf);
    pdfSetFont(pdf, "Helvetica", fsNone, 24.0, 1, cp1252);
    pdfWriteFText(pdf, taCenter, "Hello from LumasPDF");
    pdfEndPage(pdf);
    pdfCloseFile(pdf);
    pdfDeletePDF(pdf);
    return 0;
}

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
Windows C/C++

The engine as a DLL, with the header and both bitnesses.

Licence covers

win-x86 win-x64

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.