PDFium Delphi Component Docs

Installation Guide

System Requirements

Installation Steps

  1. Run the installer: Execute the installer matching your license and delivery format (runs per-user without requiring 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 recognizes its marked watermark when you save the document again
  2. Select IDE integration: On the RAD Studio Integration page, 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) are pre-ticked in a unified checklist; untick any IDE you do not want to register or configure
  3. Select documentation language: On the Multilingual Content Language page, choose the language for localized Docs\<lang> help and localized 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 optionally pick an IDE and architecture target on the Demo Compilation page to build 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:

Localized 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/organization 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. They cover 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 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 Platforms

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

Build native executables and units in separate target directories with the selected widget set. Supply the corresponding LCL and lazutils unit paths, and use the compiler's actual target configuration; Windows DCU/PPU files and Windows DLLs cannot be reused as Unix outputs

Set LibraryName to the intended libpdfium.so or libpdfium.dylib path before loading. An ordinary or V8 runtime must match that target and expose the requested features. Missing V8/XFA capabilities remain unavailable features; a library filename does not establish them

System-font access uses fontconfig on Linux and CoreText on macOS; optional CID font subsetting uses HarfBuzz with retained glyph IDs. LCL bitmaps use their actual byte order and channel description, with conversion when the native buffer layout 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. Run the target executable on its actual host and retain the report; a readiness inventory or successful cross-compile alone is insufficient

Windows installers and VCL/C++Builder projects remain the Windows setup route. Native Delphi macOS crypto and timestamp helpers are qualified separately 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