PDFium Delphi Component Docs

PDFium Delphi Component

Professional PDF Processing & Viewing Solution
Copyright © 2024-2026 losLab Software
TPdf Component TPdfView Component

Product Overview

PDFium Delphi Component is a comprehensive, professional-grade component library that brings powerful PDF processing and viewing capabilities to Delphi and C++Builder applications. It uses the PDFium rendering engine for page rendering and document reading, and implements in Object Pascal everything that engine does not provide.

That distinction matters when you evaluate the library. PDFium draws pages, extracts text, and reads existing structures. It cannot sign a document, write encryption, validate a PDF standard, or emit a linearized or incremental revision. PDFium Delphi Component ships roughly 115,000 lines of Object Pascal across 55 units, and more than 62,000 of those lines are in 36 units that have no counterpart in the PDFium API at all — cryptography, signatures, encryption, standards conformance, PDF serialization, form-data interchange, layout, and text shaping. All of it is delivered as source.

The library consists of three registered components: TPdf for document processing and manipulation with 475 public members, TPdfView for interactive visual presentation with 152, and TPdfThumbnailView for page navigation. Whether you need to build a simple PDF viewer, a signed-document workflow, an archival conversion pipeline, or a complete document management system, PDFium Delphi Component provides the tools and flexibility you need.

Beyond the Engine

The following capabilities have no counterpart in the PDFium C API. Each is implemented by PDFium Delphi Component in Object Pascal, verified against the published ISO, ETSI, IETF, or FIPS clauses, and available as source.

Digital Signatures — PAdES

Complete signing, not signature reading. PDFium can report that a signature dictionary exists; PDFium Delphi Component creates one.

Encryption and Document Integrity

PDFium opens encrypted files. It does not write encryption. PDFium Delphi Component implements the writing side against ISO 32000-2 and its technical specifications.

Standards Conformance

Six ISO standard families, each with a validator returning clause-level result codes, and a matching save or marker-injection path.

PDF Serialization and Revisions

The engine offers one sequential whole-file save. Applications frequently need more than that, so PDFium Delphi Component writes its own revisions on top of the engine's semantic output.

Content Services PDFium Does Not Expose

Core Components

TPdf Component - Document Processing Engine

The heart of the PDF processing system, TPdf handles all document-level operations including loading, saving, text extraction, form processing, and metadata management.

TPdfView Component - Interactive Viewer Control

A sophisticated visual control that provides rich PDF viewing experience with full user interaction capabilities.

Key Features & Capabilities

Document Processing

Text & Content Operations

Interactive Forms & Annotations

Visual Rendering & Display

Developer-Friendly Features

Technical Specifications

Aspect Details
Rendering Engine Google PDFium - Industry-standard, battle-tested PDF engine
PDF Support PDF versions 1.0 through 1.7, encrypted and password-protected files
Platform Compatibility Windows 32-bit and 64-bit applications
IDE Support Delphi XE5 / C++Builder XE5 (RAD Studio XE5) through Delphi/C++Builder 13.1 Florence (RAD Studio 13.1), Lazarus 3.8+
Character Encoding Full Unicode support, multi-language text processing
Memory Management Optimized for large documents, efficient resource usage
Thread Safety Single-threaded design (as per PDFium requirements)

Architecture Design

PDFium Delphi Component follows a layered architecture pattern that cleanly separates concerns and maximizes code reusability:

Layered Architecture

Layer Files Responsibility
VCL Components PDFium.pas, FPdfThumbnail.pas Delphi VCL components (TPdf, TPdfView, TPdfThumbnailView) with design-time support
API Bindings FPdfView.pas, FPdfDoc.pas, FPdfText.pas, FPdfEdit.pas, FPdfAnnot.pas, FPdfFormFill.pas, FPdfPageOps.pas, FPdfAttachment.pas, FPdfSignature.pas, FPdfStructTree.pas, FPdfDataAvail.pas, FPdfExtensions.pas, FPdfFWLEvent.pas, FPdfCompress.pas, FPdfUtils.pas Function pointer declarations for PDFium DLL calls
PDF/A Pipeline FPdfPdfa.pas PDF/A-1b creation (XMP injection, sRGB ICC OutputIntent, catalog update) and validation (conformance detection, issue enumeration)
Async Infrastructure FPdfAsync.pas IPdfCancellationToken / IPdfCancellationTokenSource, PdfNoCancellationToken singleton, and TPdfFuture<T> helper for long-running rendering and export work
Geometry Helpers FPdfMatrix.pas OO wrapper around FS_MATRIX with Translate, Scale, Rotate, Flip, Skew, and Multiply helpers
Page Operations FPdfPageOps.pas Wrappers for FPDF_ImportPagesByIndex, FPDF_ImportPages, FPDF_ImportNPagesToOne, FPDF_MovePages, scalable file-backed batch scheduling, plus Form-XObject helpers (CreateXObjectFromPage / InsertFormObjectFromXObject)
Thumbnail Side Panel FPdfThumbnail.pas TPdfThumbnailView — scrollable per-page thumbnail panel with hover, selection, and OnPageClick navigation
Native Engine DLLs\Win32|Win64\pdfium.dll and pdfium.v8.dll Google PDFium native rendering engine, with optional V8-enabled builds

Component Hierarchy

Key Design Patterns

Application Scenarios

Business Applications

Educational & Research

Legal & Compliance

Technical & Engineering

Advantages & Benefits

Performance & Reliability

Business Value

Developer Experience

Getting Started

PDFium Delphi Component is designed for immediate productivity. The component library includes:

Whether you're building a simple PDF viewer or a complex document processing system, PDFium Delphi Component provides the foundation for professional PDF functionality in your Delphi and C++Builder applications.

Explore Further