PDFium Delphi Component Docs

Installation Guide

System Requirements

Installation Steps

  1. Run the installer: Execute PDFiumPas-FULL.exe or PDFiumPas-TRIAL.exe as Administrator
  2. Select IDE integration: On the RAD Studio Integration page, detected Delphi personalities are listed first with the newest version pre-ticked; C++Builder personalities are listed separately and are off by default
  3. Select optional content: Tick C++Builder or Lazarus only when those package files and demo projects should be installed
  4. Choose installation path: Select the directory where components will be installed
  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

Native Free Pascal and LCL targets

Native wrapper builds require Free Pascal, Lazarus/LCL and a PDFium shared library matching the host OS and CPU. Qualified 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:

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