Delphi PDF SDK

losLab PDF Library: PDF creation, signing and compliance for Delphi

losLab PDF Library gives Delphi, C++Builder, and Lazarus teams a source-available PDF engine for desktop, server, DLL, ActiveX, and Dylib workflows. Every edition creates, edits, renders, encrypts, and signs PDFs with PFX or CryptoAPI keys; Enterprise adds PAdES long-term signatures, PDF/A conversion, and compliance checks. Documents never pass through an external PDF service.

3 Switchable renderers: GDI+, PDFium, and Cairo 10+ Languages through DLL, ActiveX, and Dylib ML-DSA Post-quantum PDF signatures beside RSA, ECDSA, and Ed25519
losLab PDF Library SDK interface and PDF workflow preview

Why teams choose losLab PDF Library

One source-available engine for the whole document pipeline, from generation and conversion to signing, validation, and delivery.

One engine, any language

Use the Object Pascal source in Delphi, C++Builder, and Lazarus, or call the same API through DLL, ActiveX, and Dylib builds from C#, VB.NET, VBA, Visual C++, PHP, PowerBuilder, and more.

Runs where your code runs

Windows x86, x64, and ARM64, plus native headless builds for Linux and macOS on x64 and ARM64, including a Delphi Linux64 compiler target.

Convert into compliance

ConvertToPDFA, ConvertToPDFX for PDF/X-1a to PDF/X-6, ConvertToPDFE, ConvertToPDFR, and AutoTagPages turn existing files into archival, print, engineering, raster, or tagged documents, each with a report of what changed (ConvertToPDFA requires Enterprise).

Signatures built for the long run

Post-quantum ML-DSA signatures with the FIPS 204 identifiers alongside RSA, ECDSA, Ed25519, Ed448, and SM2 in every edition, plus PAdES B-B to B-LTA, native OCSP and LDAP CRL revocation, EU trusted-list checks, and historical validation (PAdES levels, revocation, and trust-list checks require Enterprise).

Get content back out

Extract text in reading order to DOCX, JSON, CSV, or Markdown, detect tables, replace Unicode text exactly, and diff whole documents word by word across page boundaries.

Gigabyte PDFs, hardware AES

Open files beyond 2 GB on demand, merge lists in one pass with bookmarks, fields, and tags intact, and encrypt multi-gigabyte files file to file with AES-NI acceleration.

losLab PDF Library at a glance

ProductlosLab PDF Library, a source-level PDF SDK with native, DLL, ActiveX, and Dylib integration
Best forEnd-to-end PDF automation in one engine, including teams beyond Delphi via DLL and ActiveX
IDE supportDelphi and C++Builder XE5-13; Free Pascal 3.2.2 / Lazarus on Windows x64 alongside FPC 3.3.1; native Linux and macOS headless builds on x64 / ARM64 (Delphi Linux64 compiles with the RAD Studio compiler on the same native backend as the Free Pascal build); Windows ARM64 with FPC 3.3.1 and Delphi ARM64EC; DLL / ActiveX integration for C#, VB.NET, VBA, Visual C++, and compatible callers
DeploymentNative Windows application integration
Source codeFull Object Pascal source with every source-edition licence; the DCU edition ships precompiled binaries
LicensingOne-time purchase from $475 (DCU Single) to $4750 (Enterprise), royalty-free; includes one year of updates and email support, renewable
Current version4.68.46 (2026-11-20)
UpdatesOne year of updates and email support included
PricingOne-time developer-count licensing
DocumentationlosLab PDF Library
EvaluationFree demo package with trial installer (see trial limits)

Source-available PDF engine for developer-owned workflows

losLab PDF Library is a Delphi and C++Builder PDF SDK for applications that need to create, modify, render, print, sign, secure, inspect, and preflight PDF documents inside their own software.

The library is written in Delphi/Object Pascal and is available with full source for Delphi and C++Builder projects. It also ships DLL, ActiveX, and Dylib options for teams that need to integrate PDF automation from C#, VB.NET, VB6, VBA, ASP/ASP.NET, PHP, PowerBuilder, PowerBASIC, Xojo (REALbasic), Visual C++, and other environments that can call a DLL or ActiveX component.

Use it when the PDF workflow is part of your product or back-office process: generated invoices, signed contracts, archive submissions, accessibility review, print output, form processing, document assembly, or CI checks that should fail before a bad PDF reaches customers.

Download the losLab PDF Library demo package

Current release and recent improvements

Recent releases have concentrated on encrypted and signed documents that arrive from other systems:

  • Public-key encrypted PDFs: documents that use separate recipient keys for the body and for attachments open and resave correctly with a PFX credential or a certificate from the Windows store (Enterprise)
  • Signature checks without platform certificate stores: on Linux and macOS, EdDSA, ML-DSA, and SM2 signers are verified in Pascal, and certificates revoked through OCSP are rejected
  • Tighter redaction and accessibility checks: redaction paints over only the marked areas instead of the annotation's whole rectangle, and PDF/UA-1 and PDF/UA-2 checks report malformed language tags consistently (Enterprise)

The release notes list every change by version, and the API reference covers platform-specific requirements.

Main PDF capabilities

  • Create and edit PDF pages: draw text, vector graphics, images, QR codes, PDF417, DataMatrix, barcodes, annotations, links, outlines, named destinations, metadata, and document properties.
  • Page assembly and document repair: split, merge, append, copy, clone, normalise, move, delete, hide, rotate, and rebuild pages from controlled source documents.
  • Render and print: switch between GDI+, PDFium, and Cairo rendering engines for screen preview, bitmap export, device-context rendering, and printer workflows.
  • Forms and interactive documents: create, fill, edit, flatten, inspect, and manage AcroForm fields, appearances, field flags, JavaScript actions, attachments, and related document data.
  • Text, images, and fonts: work with BMP, TIFF, JPEG, JPEG 2000, GIF, PNG, EMF, HTML text boxes, Unicode text, TrueType, OpenType, Type 1, font embedding, font subsetting, and extraction workflows.
  • Security and signatures: encrypt and decrypt PDFs with hardware AES-NI acceleration on 32-bit and 64-bit Windows, protect or unprotect multi-gigabyte files through direct file-to-file AES-256 paths that never build the full object graph, set permissions, use public-key recipient encryption, sign with selectable SHA-256/384/512 digests, add PAdES attributes, timestamp signatures, and attach DSS/VRI validation data. (Public-key encryption, timestamps, and DSS/VRI require Enterprise)
  • Huge documents: open PDFs beyond 2 GB with on-demand object loading and 64-bit offsets, merge file lists in a single pass with bookmarks, form fields, and Tagged PDF structure trees preserved, append incremental updates to the source file in place, and copy or rewrite million-object documents in seconds through the Direct Access API.
  • Structured extraction and exact replacement: extract text in tagged reading order with semantic roles, columns, page furniture, and table cells exported to JSON, CSV, Markdown, or DOCX, replace Unicode content exactly while preserving surrounding characters and spacing, and add OCR text layers through optional Tesseract adapters.
  • Visual comparison and invoice validation: compare rendered pages or whole documents with channel tolerance, ignored regions, difference masks, and overlays, and validate embedded e-invoice XML against versioned schemas and Schematron rules through xmllint or SaxonJ. (Small Business feature)
  • Preflight reports and diagnostics: run PDF/A, PDF/UA-1, and PDF/UA-2 checks, generate text, JSON, HTML, or CSV reports, compare stable text reports against baselines, batch-process folders with summary CSV output, and audit signature health and document policies at scale with the SigningWorkbench and ComplianceWorkbench demos. (Enterprise feature)
  • Low-level PDF control: access object numbers, page dictionaries, catalogue entries, output intents, save-version locks, extension-level gates, tiling patterns, optional content, measurement dictionaries, and direct image insertion when your workflow requires precise PDF structure.

Standards and compliance-oriented output

PDF compliance depends on the source content, fonts, ICC profiles, metadata, tagging, alternate text, signatures, timestamps, and the validator used by your organisation. losLab PDF Library provides the controls and diagnostics needed to build standards-oriented PDFs, while leaving final policy validation in your application or QA pipeline.

WorkflowLibrary supportApplication responsibility
PDF version controlCreation, editing, save-version locks, extension-level checks, rendering, printing, forms, and document structure APIs, including PDF 2.0 profile workflowsChoose the output version and remove or upgrade features outside that profile
PDF/AOutput-intent controls, XMP metadata helpers, embedded-font workflows, version guards, and built-in PDF/A file checks for archival pipelines. (File checks require Enterprise)Provide correct metadata, fonts, colour profiles, and business rules for the selected archive policy.
PDF/UA-1Tagged PDF construction, structure-tree APIs, role-map handling, alternate text, ActualText, writer-side GetPDFUADiagnostics feedback, and reader-side file checks. (Reader-side file checks require Enterprise)Author meaningful reading order, language, headings, lists, table semantics, alternate text, and form descriptions.
PAdESETSI.CAdES.detached signatures, signing-certificate-v2 data, signature policy and commitment attributes, RFC 3161 timestamp augmentation, SHA-256/384/512 digest choices, and DSS/VRI assembly. (Every edition signs with PFX, CryptoAPI, or external-digest keys; PAdES baseline levels, RFC 3161 timestamps, and DSS/VRI require Enterprise)Supply certificates, TSA responses, revocation data, signature policy choices, and verifier-specific acceptance testing.
Preflight automationCreatePreflightReportEx, SavePreflightReportEx, and the PreflightReport scenario in ComplianceLab generate text, JSON, HTML, and CSV output for PDF/A and PDF/UA-1 checks. (Enterprise feature)Decide which report formats, baselines, exit codes, and issue counts should block CI, archive ingestion, or customer delivery.
SecurityAES-128, AES-256, permission handling, password protection, public-key recipient encryption, and encrypted-document inspection for controlled distribution. (Public-key recipient encryption requires Enterprise)Keep passwords, certificates, private keys, and recipient policies under your own security controls.

API surfaces and deployment choices

  • Delphi and C++Builder XE5 through 13; Free Pascal / Lazarus on Windows, including FPC 3.2.2 Windows x64 coverage. Native Windows ARM64 requires FPC 3.3.1, and Delphi ARM64EC builds are also supported
  • Native headless APIs run on Linux and macOS across x64 and ARM64 for generation, loading, text workflows, Cairo rendering, OpenSSL signing, and time-stamping; Delphi Linux64 compiles with the RAD Studio compiler on the same native backend as the Free Pascal build. Rendering, codecs, cryptography, and XML validators have platform-specific provider requirements
  • Native Object Pascal source code for direct Delphi and C++Builder integration, with API reference pages generated for public TPDFlib functions
  • DLL and ActiveX access for C#, VB.NET, VB6, VBA, ASP/ASP.NET, PHP, Visual C++, PowerBuilder, PowerBASIC, Xojo (REALbasic), and compatible tools
  • 32-bit and 64-bit build options where the target IDE and runtime support them
  • macOS Dylib option for teams that need cross-platform PDF automation around the same library family
  • Standalone demo projects for PDF creation, page operations, image and font handling, forms, encryption, signing, rendering, printing, and preflight report automation

Included demos and validation coverage

Delphi, C++Builder, and Lazarus each ship the same example portfolio: a flagship nine-page Showcase, a minimal HelloWorld, nine self-contained domain labs, and SmallBusinessLab and EnterpriseLab for the edition-specific workflows. Each lab runs its scenarios from one executable; started without arguments it plays a guided quick tour and opens an offline HTML report, while --list and --scenario NAME expose the individual specialist operations.

  • GraphicsLab and ImageLab: shapes, patterns, layers, watermarks, and canvas text, plus image import, masks, EMF import, and CCITT, JBIG2, and image-compression matrices.
  • ContentLab: font embedding and subsetting, text measurement, wrapped and paged text, HTML text flow, tables, dataset export, barcodes, and report framework adapters.
  • DocumentLab and InteractiveLab: page operations, merging, linearization, text and image extraction, attachments, XMP metadata, and DocumentInspectionWorkbench, alongside form fields, XFA fields, outlines, named destinations, links, and document actions.
  • ComplianceLab and SecurityLab: PDF/A guard matrices, Tagged PDF, output intents, e-invoices, PreflightReport, and ComplianceWorkbench, plus encryption, permissions, signing, PAdES DSS, signature validation, redaction, and sanitising.
  • DeliveryLab and PerformanceLab: rendering to images and metafiles, printing, output streams, parallel rendering, and mail delivery, plus huge-file, merge, and image-decode benchmarks.
  • DLL workflow examples: C# and VB.NET WorkflowWorkbench projects and native C++ examples cover report generation, text extraction, page splitting and merging, binary memory transfers, and explicit native resource ownership; Delphi additionally keeps an interactive Reader.

Recent automated coverage includes Delphi DUnitX and C++Builder GoogleTest suites for document creation, compression, images, fonts, forms, security, signing, printing, PDF version compliance, PDF/UA diagnostics, and preflight report generation and comparison.

When to choose losLab PDF Library

  • Choose it when one toolkit must create, modify, sign, validate, and deliver PDFs, and when C#, VB.NET, VBA, or Visual C++ code has to call the same engine through the DLL or ActiveX builds
  • Choose it for DOCX export, switchable GDI+, PDFium, and Cairo rendering, EU trust-list validation, or Arlington model checks
  • Choose PDFium Delphi Component instead when the main need is an embedded viewer or accessible reader built on PDFium; it is the simpler package if you mostly display PDFs
  • Choose HotPDF instead when you want its built-in renderer together with a dynamic XFA runtime and HTML/CSS layout

Licensing and pricing

Pay by credit or debit card, PayPal, or wire transfer through 2Checkout / FastSpring. Source-edition and DCU tiers can use either checkout. Every new source-edition licence includes the full Object Pascal source code for Delphi and C++Builder, one year of updates, and one year of email support.

LicenceDevelopersPrice (one-time)Order
Single1 developer$950Buy losLab PDF Library Single
Small BusinessUp to 5 developers in one company$2375Buy losLab PDF Library Small Business
EnterpriseAll developers in one company$4750Buy losLab PDF Library Enterprise
DCU Single1 developer, precompiled units without source$475Buy losLab PDF Library DCU Single
DCU Small BusinessUp to 5 developers in one company, precompiled units without source$1187.5Buy losLab PDF Library DCU Small Business
DCU EnterpriseAll developers in one company, precompiled units without source$2375Buy losLab PDF Library DCU Enterprise

Single Licence
The Single licence applies to only 1 developer.
If this product is used within a team or company, please purchase a Small Business or an Enterprise Licence, depending on the number of developers.

Small Business Licence
The Small Business licence covers up to 5 developers.
If more than 5 developers at your company may use this product, please purchase an enterprise licence.

Enterprise Licence
The enterprise licence covers all developers within a single company.
It includes enterprise-edition-specific feature modules as well as priority email support.

A DCU edition with precompiled binaries for every supported Delphi and C++Builder version is available for Single, Small Business, and Enterprise at half the source price.

Small Business and Enterprise features: losLab PDF Library Small Business adds document comparison with revision analysis, e-invoice business-rule validation, Bates numbering and PDF/VCR variable data merge; Enterprise is the complete edition, with every feature including all Small Business features, and adds PAdES long-term validation, HSM and cloud signing, signature validation with EU Trusted Lists, compliance validation and preflight reports, secure redaction and certificate-based encryption, plus priority email support. See the edition feature lists.

Updates and renewal: Renew at 50% of the current list price within 90 days of expiry; between 90 days and 6 months, contact us for a renewal at 70%; after 6 months a new licence is required. Open the purchase and renewal page.

Trial package

The free demo package contains the Windows trial installer: precompiled trial libraries for Delphi and C++Builder XE5 through 13 and for Free Pascal / Lazarus, optional trial DLL and ActiveX modules, an optional macOS Dylib for Apple silicon and Intel, the example projects as source, and the documentation. The trial has the Enterprise feature set but not the library source code.

Trial limits: every page of a document saved by the trial carries a diagonal TRIAL VERSION watermark, and each incremental update adds TRIAL VERSION to the document's Producer entry. The licensed build uses the same API, so code written against the trial compiles unchanged.

Quick Delphi example

uses
  PDFlibrary;

procedure CreateHelloPdf;
begin
  with TPDFlib.Create do
    try
      SetOrigin(1);
      AddStandardFont(4);
      SetTextSize(24);
      DrawText(92, 96, 'Hello world from Delphi');
      SetTextSize(11);
      DrawText(94, 126, 'Created with losLab PDF Library.');
      SaveToFile('HelloWorld.pdf');
    finally
      Free;
    end;
end;

The same call pattern extends to page assembly, form filling, encryption, signing, rendering, and preflight reporting; the demo package ships complete projects for each workflow.

Frequently asked questions

How is losLab PDF Library different from HotPDF Delphi Component?

Both libraries create, edit, render, sign, encrypt, and validate PDFs. losLab PDF Library offers switchable GDI+ / PDFium / Cairo backends, structured DOCX export, EU trust-list and Arlington tools, and packaged DLL / ActiveX / Dylib APIs. HotPDF combines a built-in renderer with a dynamic XFA scripting runtime and native HTML/CSS layout. Choose by API, document workflow, and deployment requirements.

Can I use losLab PDF Library from C#, VB.NET, or other non-Delphi environments?

Yes. Besides native Object Pascal source for Delphi and C++Builder, the library ships DLL and ActiveX builds usable from C#, VB.NET, VB6, VBA, ASP/ASP.NET, PHP, PowerBuilder, PowerBASIC, Xojo (REALbasic), Visual C++, and other environments that can call a DLL or ActiveX component, plus a macOS Dylib option.

Which Delphi and C++Builder versions are supported?

Delphi and C++Builder XE5 through 13. Free Pascal 3.2.2 supports the Windows x64 library and Lazarus demos alongside FPC 3.3.1; native Windows ARM64 requires FPC 3.3.1, with Delphi ARM64EC also supported. Native headless builds cover Linux and macOS on x64 and ARM64.

Which rendering engines does the library provide?

You can switch between GDI+, PDFium, and Cairo rendering engines for screen preview, bitmap export, device-context rendering, and printer workflows.

Does losLab PDF Library support digital signatures and PAdES?

Yes. Every edition signs with PFX, Windows CryptoAPI, or external-digest keys, and with ML-DSA, Ed25519, Ed448, and SM2 identities. Enterprise adds the PAdES baseline levels B-B to B-LTA: ETSI.CAdES.detached signatures with signing-certificate-v2 data, signature policy and commitment attributes, RFC 3161 timestamps, selectable SHA-256, SHA-384, or SHA-512 digests, and DSS/VRI validation data for long-term validation.

How does the library handle very large PDF files?

It opens PDFs beyond 2 GB with on-demand object loading and 64-bit offsets, merges file lists in a single pass while preserving bookmarks, form fields, and Tagged PDF structure, appends incremental updates in place, and copies or rewrites million-object documents in seconds through the Direct Access API.

Can it check PDF/A and PDF/UA compliance automatically?

Yes, in the Enterprise edition. Built-in PDF/A, PDF/UA-1, and PDF/UA-2 checks generate text, JSON, HTML, or CSV reports, compare stable text reports against baselines, batch-process folders with summary CSV output, and expose writer-side diagnostics through GetPDFUADiagnostics.

What does a licence include, and how does renewal work?

A new source-edition licence ($950 Single, $2375 Small Business for up to 5 developers, $4750 Enterprise for all developers in one company) includes full source code for Delphi and C++Builder, one year of updates, and one year of email support; DCU licences ship precompiled units at half the price. Renewal terms are listed on the purchase page.


Subscribe to product updates

Get an email when new versions of losLab PDF and spreadsheet libraries are released.