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 Delphi / Object Pascal

pascal
// add include\ to the unit search path
uses LumasPdfOO;

2. Write a PDF

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

pascal
var
  Pdf: TLumasPdf;
begin
  Pdf := TLumasPdf.Create;
  try
    Pdf.CreatePDF('hello.pdf');
    Pdf.Append;
    Pdf.SetFont('Helvetica', fsNone, 24.0, True, cp1252);
    Pdf.WriteFText(taCenter, 'Hello from LumasPDF');
    Pdf.EndPage;
    Pdf.CloseFile;
  finally
    Pdf.Free;
  end;
end;

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
Delphi / Object Pascal

Two bindings: the flat DLL unit and an object wrapper.

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.