PDFium Delphi Component Docs

Installation Guide

System Requirements

Installation Steps

  1. Run the installer: Execute the installer matching your licence and delivery format (it runs per-user and needs no Administrator elevation) — source editions (PDFiumPas-STD.exe for Single, PDFiumPas-SME.exe for Small Business, or PDFiumPas-ENT.exe for Enterprise), precompiled binary/DCU editions without library source code (PDFiumPas-DCU-STD.exe, PDFiumPas-DCU-SME.exe, or PDFiumPas-DCU-ENT.exe), or the evaluation installer (PDFiumPas-TRIAL.exe). The trial edition marks generated pages with a trial watermark and recognises its marked watermark when you save the document again
  2. Select IDE integration: On the RAD Studio Integration page, the detected Delphi/C++Builder IDE versions (XE5 through 13.2 Florence) and Lazarus 3.8+ (FPC 3.2.2 and 3.3.1; 3.2.2 default) come pre-ticked in a single checklist; untick any IDE you do not want registered or configured
  3. Select documentation language: On the Multilingual Content Language page, choose the language for the localised Docs\<lang> help and the localised demo Readme-<lang>.html files (pre-selected from your Windows UI language, with English en-us always included as the canonical reference)
  4. Select installation path and post-install demo build: Choose the installation directory and, if you wish, pick an IDE and architecture target on the Demo Compilation page to build the sample projects after setup
  5. Complete installation: Follow the on-screen instructions
  6. Verify installation: The following components will be added to the losLab palette:

Localised Help and Demo Builds

Manual Installation (Advanced)

If automatic installation fails, you can manually install the components:

  1. Copy the component files to your IDE's library path
  2. Add the library path to your IDE's search directories
  3. Install the design-time package through IDE's Package Manager
  4. Rebuild your IDE to register the components

Small Business Edition Units

See the edition matrix for functional boundaries and the separate developer/organisational licensing scope

Since v3.265.0, Small Business also includes the complete FPdfSemanticDiff semantic comparison API in Lib\SmallBusiness, alongside structured OCR through FPdfOcrLayout, Tesseract-native layout/regions and bounded static flowed XFA

Since v3.266.0, Small Business includes FPdfBusinessWorkflows and the PDF/R engine FPdfPdfrEngine; manual upgrades must remove the obsolete Lib\Enterprise\FPdfPdfrEngine.pas source because the Enterprise path takes precedence

Enterprise also links FPdfWorkflowEvidence; shared bounded report utilities in FPdfReport remain available in every edition

The installer removes the obsolete Lib\Enterprise\FPdfSemanticDiff.pas; remove it during manual upgrades too, because the Enterprise path otherwise shadows the new source. The unit name and public namespaces are unchanged, and Enterprise inherits the unit through Small Business

The Small Business edition installs the Small Business units in Lib\SmallBusiness next to the core units in Lib, plus the PDFiumPasSB package (it requires PDFiumPas) for every supported RAD Studio version and Lib\FPC\PDFiumLazSB.lpk for Lazarus. Coverage takes in static XFA to AcroForm flattening (FPdfDocumentXfaFlatten), the searchable OCR layer and layout (TPdf.ApplyOcrSearchLayer, FPdfOcrLayout and the FPdfOcrTesseract provider), PDF/R validation and conversion (FPdfPdfrEngine), semantic comparison (FPdfSemanticDiff) and the Small Business workflows (FPdfBusinessWorkflows). The Enterprise edition includes them; the Single edition ships neither

Enterprise Edition Units

The Enterprise edition installs the Enterprise-only units in Lib\Enterprise next to the core units in Lib, plus the PDFiumPasEnt package (it requires PDFiumPas) for every supported RAD Studio version and Lib\FPC\PDFiumLazEnt.lpk for Lazarus. The Enterprise edition also contains every Small Business unit, and PDFiumPasEnt requires PDFiumPasSB (PDFiumLazEnt.lpk requires PDFiumLazSB.lpk). The Single and Small Business editions ship neither

Native Free Pascal and LCL targets

Native wrapper builds require a Free Pascal compiler matched to the host OS and CPU (FPC 3.2.2 default or 3.3.1), Lazarus/LCL and a PDFium shared library. The recorded native LCL acceptance configurations use FPC 3.3.1 and LCL 4.99, with Qt6 on Linux x86_64 or Cocoa on macOS arm64

Build each target's executables and units in its own directory using the chosen widget set. Provide matching LCL and lazutils unit paths and the compiler's real target configuration; Windows DCU/PPU files or DLLs cannot serve as Unix output

Before loading, set LibraryName to the intended libpdfium.so or libpdfium.dylib. Both ordinary and V8 runtimes must match the target and export the requested features; absent V8/XFA capabilities stay unavailable, regardless of the library's filename

Linux system fonts are accessed through fontconfig and macOS fonts through CoreText; optional CID subsetting uses HarfBuzz whilst retaining glyph IDs. LCL bitmap handling follows actual byte order and channel descriptions, converting when a native buffer cannot be used directly

Tests/PlatformAcceptance/run_native.py and NativeWrapper.lpr provide source-bound native acceptance for loading, rendering, text, forms, saving, cancellation and lifecycle checks. Execute the target binary on its actual host and keep its report; an inventory of readiness or a successful cross-compile is not sufficient

Windows installers and VCL/C++Builder projects remain the Windows installation route. Native Delphi macOS crypto and timestamp helper qualification is separate from the FPC/LCL visual component

Redistribution

When distributing applications that use PDFium VCL:

Troubleshooting

Common Issues:

C++Builder static and runtime edition clients

Use matching compiler/platform outputs for the core, Small Business and Enterprise packages. Small Business requires the core package; Enterprise requires both core and Small Business. Include FPdfSmallBusiness.hpp or FPdfEnterprise.hpp for the selected edition and keep the original API namespaces

For modern Win64x static linking, use matching COFF package libraries and fresh generated headers; optional FPdfCryptoSsl.hpp includes Windows transport directives for wldap32.lib and ws2_32.lib, so add the matching Windows SDK Lib/<version>/um/x64 directory to the linker search path; classic Win64 uses the corresponding C++Builder .a imports and Win32 uses its platform .lib imports

The focused delivery runner Tests/EditionDelivery/Run.py automatically discovers installed compatible SDK headers and x64 LDAP/Winsock imports, compiles RTL/VCL header probes, validates COFF architecture and links/runs an actual import probe before building clients; --sdk and --windows-importlib remain explicit overrides, and unavailable/mismatched candidates produce recorded diagnostics

Runtime BPL clients must deploy a coherent core/Small Business/Enterprise set and matching RTL/VCL runtime packages. An edition flag alone does not prove every implementation or provider is ready; query the individual feature and verify its native/provider/document prerequisites

The recorded Win64x delivery profile builds all three product packages, links header/archive-only C++ clients and executes actual BPL clients with real OCR, Unicode XFA, selected PDF/X output, signature trust and finite transparency redaction. It does not qualify other compiler/platform combinations or arbitrary-file conformance

Uninstallation

To remove PDFium VCL components:

  1. Use Windows Add/Remove Programs
  2. Or run the uninstaller from the installation directory
  3. Manually remove any remaining files if necessary