PDF Splitter with Regex-Based Text Pattern Matching

PP
Paulius Petkus
ConvertAPI

The Split PDF converter can now divide a document using a regex text pattern with the new SplitByTextPattern parameter, joining the existing SplitByPattern, SplitByCustomRange, and ExtractPages options.

Parameters

  • SplitByTextPattern - splits the PDF at each text segment that matches a regex pattern, creating a separate file at every occurrence. Ideal for segmenting content by recurring headings, section labels, or custom text markers. For example, the pattern Chapter \d+: splits at each numbered chapter title (Chapter 1:, Chapter 2:) while ignoring chapters without a number.

Example PDF:

Source PDF with numbered chapter titles

Splitting by that pattern produces three PDF documents:

The three resulting PDF documents

Try it out