Splitting PDF Documents into Multiple Files with PDFium Delphi

Splitting a large PDF into smaller files is essential for document distribution, archiving, and processing. The Split PDF demo shows how to split PDF documents using various methods with PDFium VCL in Delphi.

Overview

This comprehensive demo offers three splitting modes: individual pages, page ranges, and by bookmarks. It includes progress tracking, detailed logging, and customizable output file naming.

Split Modes

  • Individual Pages – Create a separate PDF for each page
  • Page Ranges – Split by custom page ranges (e.g., 1-5, 6-10)
  • By Bookmarks – Split at bookmark boundaries for logical sections

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.

Splitting into Individual Pages

Splitting by Page Ranges

Parsing Page Ranges

Splitting by Bookmarks

Customizable Output Filenames

Progress and Status Updates

Cancellation Support

Completion Summary

Use Cases

  • Extract Chapters – Split books or manuals by chapter using bookmarks
  • Distribute Pages – Give different team members different page ranges
  • Archive By Section – Organize large documents into smaller, manageable files
  • Page Extraction – Extract specific pages for sharing or review

Conclusion

The Split PDF demo demonstrates the flexibility of PDFium VCL for document manipulation. Whether splitting by pages, ranges, or logical sections defined by bookmarks, the process is straightforward and efficient.

Combined with customizable output naming and progress tracking, you can build professional document splitting tools for any workflow.

Download PDFium VCL Component from loslab.com and take control of your PDF documents.