What PDFium Delphi Component is for
PDFium Delphi Component is a set of Delphi, C++Builder, and Lazarus components built on PDFium, the open-source PDF engine that Chromium uses to display PDF files. PDFium supplies page rendering, text access, form handling, and basic page editing. The component wraps it in Delphi-native objects and adds what PDFium does not have: digital signatures, encryption writing, validators for six PDF standard families, linearized and object-stream output, XFDF and XMP support, and a reader architecture with accessibility features.
It is a good fit for teams that:
- ship a desktop application in which users open, read, search, annotate, fill, and print PDFs without switching to an external viewer
- want PDFium rendering but also have to sign, encrypt, or check documents before they leave the application
- build accessible reading tools with read-aloud, word highlighting, and low-vision display modes
- run batch or CI jobs that validate PDF/A or PDF/UA output and stop a build on conditions they define
It is a weaker fit when the main job is generating large numbers of PDFs from code, such as reports, invoices, or HTML layouts. The comparison below covers when HotPDF or losLab PDF Library is the better choice.
PDFium Delphi Component at a glance
| Product | PDFium Delphi Component, a source-code PDF viewer and document SDK for Delphi, C++Builder, and Lazarus |
|---|---|
| Components | TPdf (non-visual document), TPdfView (viewer), TPdfThumbnailView (thumbnail panel) |
| IDE support | Delphi and C++Builder XE5 through 13 Florence (Win32, Win64); Lazarus 3.8 or later with Free Pascal 3.2.2 or 3.3.1 on Windows, Linux (Qt6), and macOS (Cocoa) |
| PDFium runtime | Standard and V8 / XFA pdfium.dll builds for Win32 and Win64 are included; on Linux and macOS the component loads a PDFium shared library built for that target |
| Editions | Single, Small Business, and Enterprise, each containing everything in the edition before it |
| Source code | Full Object Pascal source with every source-edition license; DCU editions ship precompiled binaries |
| Licensing | One-time purchase from $325 (DCU Single) to $3250 (Enterprise), royalty-free; includes one year of updates and email support, renewable |
| Current version | 3.434.24 (2026-11-18) |
| Evaluation | Free demo package with trial installer |
What PDFium provides and what the component adds
PDFium is a capable engine. Its C API renders pages, extracts text, fills AcroForm fields, creates annotations, edits page objects, imports pages (including N-up layouts), and saves a document either as a full copy or incrementally through FPDF_SaveAsCopy with the FPDF_INCREMENTAL flag. The component uses all of this. What PDFium does not provide is code that writes cryptography, checks a PDF standard, or controls how the output file is structured.
| Area | PDFium engine | Added by PDFium Delphi Component |
|---|---|---|
| Page display | Renders pages and tiles to bitmaps; no user interface | TPdfView and TPdfThumbnailView with zoom, fit modes, continuous and spread layouts, selection, link handling, form focus, and progressive, cancellable rendering |
| Saving | Full-file save, or incremental save of the open document | Linearized Fast Web View output with hint tables, object-stream and xref-stream packing, dirty-object incremental revisions that leave the earlier bytes untouched, and repair copies re-checked by a strict load |
| Digital signatures | Reads existing signature dictionaries | PAdES signing from B-B to B-LTA, CMS / CAdES containers, RFC 3161 time-stamps, and clause-level PAdES validation |
| Encryption | Opens encrypted files and can save a copy without security | PDF 2.0 AES-256 (R6) writing, ISO/TS 32003 AES-GCM, and ISO/TS 32004 PDF MAC |
| Standards | No validators | PDF/A, PDF/UA, PDF/X, PDF/E, PDF/VT, and PDF/R validators with matching save helpers |
| Form data and metadata | Field access and the document info dictionary | XFDF and FDF import and export, XMP packet reading and writing |
| Damaged files | Recovers silently | Strict, compatible, and recovery load policies with diagnostics that report what was rebuilt |
The signing, encryption, validation, serialization, XFDF, and XMP code is Object Pascal in the package rather than calls into PDFium, so you can read it, step through it in the debugger, and include it in a security review.
Core capabilities
The features are grouped by the job you are doing. Notes in italics mark features that need Small Business or Enterprise; everything else is in every edition.
Viewing, rendering, and printing
TPdfView provides zoom, rotation, fit modes, single-page, continuous, and cover-aware spread layouts, text selection with copy, search highlighting, safe link clicks, and form focus. TPdfThumbnailView adds a scrollable page strip with click-to-go navigation. Rendering runs progressively and can be cancelled, and RenderPagesParallel renders a set of pages in parallel.
Documents load from files, memory, or custom seekable streams with on-demand reads, so a multi-gigabyte file does not need an up-front copy in memory. In internal tests with 2.x GB files the first page became usable before the whole file had been read; actual results depend on storage, document structure, and hardware. Printing supports page ranges, copy counts, scaling, N-up, odd / even filtering, grayscale output, and duplex settings.
Text, search, and extraction
Extract page text, search forward or backward, and read character positions, angles, and font data. GetStructuredText builds a block, line, and span hierarchy from Tagged PDF structure or, for untagged files, from the physical layout. ExtractTables detects bordered and whitespace-aligned tables and exports CSV or JSON, and BuildReflowDocument turns fixed-layout pages into safe HTML with headings, lists, figures, and table spans.
The optional Tesseract provider, or any engine you plug into IPdfOcrProvider, adds a searchable text layer to scanned pages and verifies it after saving. (OCR requires Small Business).
Forms, editing, and document assembly
Fill and flatten AcroForm fields with undo and redo, generated appearances, and field flags. Interactive XFA forms work through the bundled V8 / XFA runtime; converting static XFA forms into AcroForm widgets is a Small Business feature. Document assembly covers creating documents, inserting, deleting, and moving pages, importing page ranges, N-up composition, watermarks, stamps, and merges that keep outlines, named destinations, links, and form fields working.
Text replacement in the original font and style is available in every edition. Page, text, and pixel comparison of two revisions is also in every edition, while semantic comparison of annotations, form widgets, metadata, and structure requires Small Business. (Secure redaction that removes content under the marked area requires Enterprise).
Signing and encryption
Every edition signs to PAdES B-B and B-T with RFC 3161 time-stamps, validates PAdES structure, and analyzes document revisions. Signing keys come from the Windows certificate store through CNG, from the macOS Keychain, or from OpenSSL with RSA-PSS, RSA PKCS#1 v1.5, or ECDSA keys. Enterprise adds B-LT and B-LTA with a Document Security Store and archive time-stamps, OCSP and CRL revocation evidence, trust validation against EU Trusted Lists, PKCS#11 tokens, and a two-step remote signing flow (PreparePadesRemoteSignature and CompletePadesRemoteSignature) in which the private key never reaches the workstation.
SaveAsEncrypted writes PDF 2.0 AES-256 encryption with the R6 key derivation and permission entries, and ISO/TS 32003 AES-GCM and ISO/TS 32004 PDF MAC are supported as well. AES, SHA-2, SHA-3, HMAC, and ASN.1 are implemented in Pascal, so encryption needs no external library on any platform. On Windows, signing uses CNG and adds no C library to your deployment; on Linux and macOS, signing uses OpenSSL's libcrypto, loaded at run time, or the macOS Keychain.
Standards and preflight
Each of the six standard families has its own validator and save or marker helper. PDF/A and PDF/UA (including PDF/UA-2) are in every edition, PDF/R is in Small Business, and PDF/X, PDF/E, PDF/VT, preflight reports, and automatic PDF/A remediation are in Enterprise. The standards table lists what each workflow checks and what stays the application's responsibility.
Accessible reading and untrusted input
TPdfReadingSession coordinates sentence-level reading units, the mapping from spoken text back to page content, and word events, so a host speech engine can keep narration and on-page highlighting in step. The reader also supports form-field navigation, tagged-structure inspection, CJK-aware word breaks, and low-vision bitmap transforms.
For files from outside your organization, TPdfStreamInspector decodes streams under explicit size, expansion-ratio, and stream-count budgets, so a decompression bomb returns a status instead of exhausting memory. Security inspection reports JavaScript actions, URI and Launch links, attachments, permissions, and signatures.
Standards and preflight workflows
| Workflow | PDFium Delphi Component support | Application responsibility |
|---|---|---|
| PDF/A | ValidatePdfA and SaveAsPdfA across ISO 19005 parts 1 to 4, including the PDF 2.0 based A-4, A-4f, and A-4e profiles, with OutputIntent, XMP, font-embedding, and structure checks. (Automatic remediation of failing files requires Enterprise) | Choose the archival target, supply correct metadata and color data, and review reported issues before delivery |
| PDF/UA | ValidatePdfUa and SaveAsPdfUa for PDF/UA-1 (ISO 14289-1) and PDF/UA-2 (ISO 14289-2): language tags, tagging, structure tree, marked content, and annotation checks | Author meaningful reading order, headings, lists, table semantics, alternate text, and document language |
| PDF/R | ValidatePdfR and SaveAsPdfR for ISO 23504-1, including one strip image per page and the permitted encodings. (Small Business) | Use PDF/R where the receiving system expects raster-only documents |
| PDF/X, PDF/E, PDF/VT | PDF/X from X-1a to the PDF 2.0 based X-6 with OutputIntent and page-box checks, PDF/E-1 with an embedded sRGB output intent, and PDF/VT including VT-2s multipart MIME packaging. (Enterprise) | Supply production output-intent data, page geometry, and document-part structure for the target profile |
| PAdES | SignPades and ValidatePadesCompliance against ETSI EN 319 142-1 with clause-level result codes. (B-B and B-T in every edition; DSS, B-LT, and B-LTA require Enterprise) | Supply the signing certificate and chain, choose a TSA, and define retention and revocation policy |
| Preflight reports | FPdfPreflightReport and PreflightReportCli combine validator results into TXT, HTML, Markdown, JSON, CSV, SARIF 2.1.0, JUnit XML, or NDJSON with stable SHA-256 fingerprints, and the command-line runner returns an exit code for CI. (Enterprise) | Decide which results should block a build, a delivery, or archive ingestion |
The validators check marker-level requirements and a growing set of file-level clauses. If you need formal certification, pair them with a dedicated validation engine.
Code example
Open a file in the viewer, highlight a search term, save a PDF/A copy, and sign for long-term archiving.
procedure TForm1.OpenPdf(const FileName: string);
begin
Pdf.FileName := FileName;
PdfView.Pdf := Pdf;
PdfThumbnailView.Pdf := Pdf;
PdfView.DisplayMode := dmSingleContinuous;
PdfView.FitMode := pfmFitWidth;
PdfView.AllowUserTextSelection := True;
PdfView.Active := True;
end;
procedure TForm1.HighlightInvoiceNumber;
begin
Pdf.PageNumber := PdfView.PageNumber;
if Pdf.FindFirst('Invoice', []) >= 0 then
PdfView.HighlightSearchText('Invoice', False, False);
end;
procedure TForm1.SaveArchiveCopy(const OutputFile: string);
begin
if not Pdf.SaveAsPdfA(OutputFile, pac1b) then
raise Exception.Create('The PDF/A archive copy could not be saved.');
end;
procedure TForm1.SignForLongTermArchive(const OutputFile: string);
var
Options: TPadesSignOptions;
begin
Options := TPadesSignOptions.Default;
Options.CertificateThumbprint := SignerThumbprint;
Options.Level := plB_LTA; // B-LT and B-LTA require Enterprise
Options.TsaUrl := 'https://tsa.example.com/tsr';
Options.Reason := 'Approved for release';
if not Pdf.SignPades(OutputFile, Options) then
raise Exception.Create('The document could not be signed.');
end;
procedure TForm1.CheckSignatureLevel;
var
Result: TPadesValidationResult;
begin
Result := Pdf.ValidatePades;
if Result.IsCompliantAt(plB_LTA) and Result.IsCryptographicallyValid then
ShowMessage(Format('%d signature(s), %d archive time-stamp(s), verified.',
[Result.SignatureCount, Result.DocTimeStampCount]))
else
ShowMessage('The document does not reach the required PAdES baseline.');
end;
Demos and reference applications
Delphi, C++Builder, and Lazarus each ship 22 or more complete workflow demos plus shorter API topics under Miscellaneous. Every demo opens with content already loaded; PDFViewer starts from a bundled six-page showcase document. The examples guide describes each project and how to repeat the large-file test with your own PDFs.
- Readers: PDFViewer, MultiPageViewer, SplitView, SearchAndSelect, AccessibilityReader, and PrintPDF
- Extraction and conversion: ContentExtractionLab, TableExtractionLab, BatchExport, ExtractImages, and ImageToPDF
- Assembly and forms: MergePDF, SplitPDF, CreatePDF, WatermarkStamp, FormFill, and Attachment
- Standards and automation: StandardsLab, PreflightReport, PreflightReportCli, AccessibilityWorkbenchCli, and IntakeWorkbenchCli for headless batch and CI jobs (the PreflightReport demos and the PDF/X, PDF/E, and PDF/VT parts of StandardsLab require Enterprise)
Choosing between PDFium Delphi Component, HotPDF, and losLab PDF Library
All three are losLab Object Pascal PDF libraries sold with source code. They overlap, but each is built around a different job.
| Product | Choose it when |
|---|---|
| PDFium Delphi Component | An embedded viewer or reader is central to the application, you want PDFium rendering, and you also need signing, encryption, or standards checks |
| HotPDF Delphi Component | The main job is producing PDFs from code, with its own renderer, HTML/CSS layout, and dynamic XFA forms handled in process |
| losLab PDF Library | You need switchable GDI+, PDFium, and Cairo renderers, DOCX export, EU trust-list and Arlington model tools, or DLL, ActiveX, and Dylib builds for C#, VB.NET, and other languages |
Single License
The Single license applies to only 1 developer.
If this product is used within a team or company, please purchase a Small Business or an Enterprise License, depending on the number of developers.
Small Business License
The Small Business license covers up to 5 developers.
If more than 5 developers at your company may use this product, please purchase an enterprise license.
Enterprise License
The enterprise license covers all developers within a single company.
It includes enterprise-edition-specific feature modules as well as priority email support.
Before you choose PDFium Delphi Component, check these points:
- A PDFium runtime ships with your application: the Windows DLLs are in the package; on Linux and macOS you provide a PDFium shared library for the target, and features whose exports that library lacks are reported as unavailable
- Report-style generation is not its focus: creating documents and composing pages are supported, but flowing text and tables across many pages is easier in HotPDF or losLab PDF Library
- Some features use external providers: OCR needs Tesseract, ICC color conversion needs LittleCMS, and barcode generation and recognition need the optional barcode provider
The PDF developer libraries overview compares the three products side by side.
Try it before you buy
The free demo package contains the Windows trial installer. It installs precompiled trial libraries for the supported Delphi and C++Builder versions and for Lazarus with Free Pascal 3.2.2 on Windows, the demo projects as source code, and the PDFium runtime DLLs. The trial has the Enterprise feature set but does not include the library source code.
Trial limits: every page of a document saved by the trial carries a diagonal TRIAL VERSION watermark, saving a document's original bytes unchanged works only for signed documents, and a reminder dialog appears once, about ten seconds after the PDFium library loads. Opening, viewing, rendering, and extraction are not limited. Licensed builds use the same units and API, so code written against the trial compiles unchanged.
Editions, 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.
| License | Developers | Price (one-time) | Order |
|---|---|---|---|
| Single | 1 developer | $650 | Buy PDFium Delphi Component Single |
| Small Business | Up to 5 developers in one company | $1625 | Buy PDFium Delphi Component Small Business |
| Enterprise | All developers in one company | $3250 | Buy PDFium Delphi Component Enterprise |
| DCU Single | 1 developer, precompiled units without source | $325 | Buy PDFium Delphi Component DCU Single |
| DCU Small Business | Up to 5 developers in one company, precompiled units without source | $812.5 | Buy PDFium Delphi Component DCU Small Business |
| DCU Enterprise | All developers in one company, precompiled units without source | $1625 | Buy PDFium Delphi Component DCU Enterprise |
What each edition adds: Single contains the viewer, rendering, extraction, editing, AcroForm, encryption, PDF/A and PDF/UA validation, and PAdES B-B and B-T signing. Small Business adds semantic document comparison, OCR text layers, static XFA conversion, PDF/R, and scan and review workflows. Enterprise adds PDF/X, PDF/E, and PDF/VT, preflight reports with PDF/A remediation, secure redaction and active-content sanitisation, PAdES B-LT and B-LTA, trust validation, PKCS#11 and remote signing, and priority email support. See the edition feature lists.
Updates and renewal: Every new license includes one year of updates and email support and a perpetual right to use the version you bought, and licensed applications ship royalty-free within the licensed developer scope. 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 license is required. Open the purchase and renewal page.
The release notes list every change by version, and the API reference documents runtime requirements per feature.
Frequently asked questions
Which files do I ship with my application?
On Windows, ship the matching pdfium.dll for Win32 or Win64 in the application folder or in a DLLs\Win32 or DLLs\Win64 subfolder, and add pdfium.v8.dll only if you use XFA forms. The component does not load the DLL from the current directory or from PATH. On Linux and macOS, set LibraryName to the libpdfium.so or libpdfium.dylib you deploy.
Is PDFium licensed separately?
PDFium is open-source software under a BSD-style license, which is included in the package. No additional runtime license is needed for the PDFium DLLs.
How is the DCU edition different from the source edition?
The DCU edition has the same features, delivered as precompiled units for Delphi and .hpp, .obj, and .lib files for C++Builder, at half the source price. You can move to the source edition of the same tier later by paying the difference: $325 for Single, $812.5 for Small Business, or $1625 for Enterprise.
How do I enable Small Business or Enterprise features in code?
Keep your existing unit names and add FPdfSmallBusiness or FPdfEnterprise to a uses clause; with the edition package installed, the IDE adds it to forms that host a TPdf. If the implementation is not linked, those entry points raise EPdfSmallBusinessRequired or EPdfEnterpriseRequired, and QueryPdfFeature reports which features are available without running them.
Subscribe to product updates
Get an email when new versions of losLab PDF and spreadsheet libraries are released.
