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 iOS

text
Add libLumasPdf.dev.a and lumaspdf.h to your Xcode target

2. Write a PDF

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

c
#include "lumaspdf.h"

void makePdf(const char *path) {
    void *pdf = pdfCreatePDF(path);
    pdfAppend(pdf);
    pdfWriteFText(pdf, taCenter, "Hello from LumasPDF");
    pdfEndPage(pdf);
    pdfCloseFile(pdf);
    pdfDeletePDF(pdf);
}

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.

Before you deploy this one

This package
iOS

Static archives for device and simulator.

Licence covers

ios

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.