Documentation / Install guides

Install Python

A ctypes binding: no compiled module, no build step.

1. Get the package

The download is public and needs no key — unlicensed output carries an evaluation watermark and nothing else is restricted. The package file is python.zip.

Download python

2. Check your platform

Two separate facts per platform: whether a licence key for this package covers it, and whether the download ships an engine binary for it.

Platform Licence covers it Binary in the download
win-x86 Yes Yes
win-x64 Yes Yes
linux-x64 Yes Yes
macos Yes Yes

3. Install

shell
pip install lumaspdf
# or: unzip python.zip and import lumaspdf from it

4. Licence it

A licence is one key string, set once at startup. Buying one and installing it is covered by how licensing works; until then the engine runs fully functional with an evaluation watermark.

5. Your first PDF

The smallest complete program: create, write, close.

python
import lumaspdf

pdf = lumaspdf.pdfNewPDF()
lumaspdf.pdfCreateNewPDFA(pdf, b"hello.pdf")
lumaspdf.pdfAppend(pdf)
lumaspdf.pdfSetFontA(pdf, b"Helvetica", lumaspdf.fsNone, 24.0, True, lumaspdf.cp1252)
lumaspdf.pdfWriteFTextA(pdf, lumaspdf.taCenter, b"Hello from LumasPDF")
lumaspdf.pdfEndPage(pdf)
lumaspdf.pdfCloseFile(pdf)
lumaspdf.pdfDeletePDF(pdf)

Where next