Using PDFium VCL in Delphi for side-by-side comparison of PDF documents

Comparing multiple PDF documents side by side is essential for revision review, quality control, and document verification. The Split View demo shows how to display two or three PDF documents simultaneously using PDFium VCL.

Overview

This advanced demo displays multiple PDF documents in synchronized views, allowing users to compare documents visually. It supports both two-way and three-way comparison modes, with independent navigation and zoom controls for each view.

Key Features

  • Two-Panel Mode – Compare two documents side by side
  • Three-Panel Mode – Compare three documents simultaneously
  • Independent Navigation – Navigate each document independently
  • Synchronized Zoom – Apply zoom to all views or individually
  • Text Selection – Select and copy text from any panel
  • Save as Image – Export current view as an image
  • Active Panel Highlighting – Visual indication of the active panel

PDFium DLL Requirements

Before running any PDFium VCL application, ensure the PDFium DLL files are installed:

  • pdfium32.dll / pdfium64.dll – Standard versions (~5-6 MB)
  • pdfium32v8.dll / pdfium64v8.dll – With V8 JavaScript engine (~23-27 MB)

Installation: Run PDFiumVCL\DLLs\CopyDlls.bat as Administrator to automatically copy the DLLs to Windows system directories.

Setting Up Multiple Views

Switching Between View Modes

Opening PDFs in Each Panel

Managing Active Panel

Applying Actions to Active or All Views

Synchronized Page Navigation (Optional)

Independent Zoom Controls

Saving Current View as Image

Text Selection in Each Panel

Use Cases

  • Document Revision Review – Compare original and revised documents
  • Quality Control – Verify production against templates
  • Legal Review – Compare contract versions
  • Translation Verification – View source and translated documents
  • Multi-language Documents – View same content in different languages

Conclusion

The Split View demo showcases the flexibility of PDFium VCL for building advanced document comparison tools. With support for multiple independent views, synchronized navigation, and per-panel controls, you can create professional comparison applications.

The ability to open different PDFs in each panel and compare them visually is invaluable for revision review and quality control workflows.

Build powerful document comparison tools with Delphi PDFium VCL Component.