New: PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

How to Split PDF by Text Search using PDF.co and Make

In this tutorial, we will show you how to split your PDF file by text search using PDF.co and Make. We will use a 3-page PDF Invoice and split the Invoice every time the engine encounters the phrase "Invoice Number".

Step 1: In PDF.co, Select “Split a PDF”

First, let’s create a scenario in Make and choose PDF.co. Once you see the different PDF.co modules, please select Split a PDF.

Screenshot of Split a PDF module
Screenshot of Split a PDF module

Step 2: Configure the PDF.co Split PDF module

  • In the Input File field, please select Import a File From URL.
  • In the Url field, enter the link to the PDF file. To follow along, you can grab the link from this PDF Invoice link.
  • In the Split by field, please choose Text Found.
  • In Search String, enter the text that identifies the start of each document. This sample uses the literal heading Invoice Number, not an individual invoice’s numeric value. Check that this heading appears on the intended start pages and does not also appear on continuation pages where you do not want a split.
  • In the Case Sensitive field, let’s leave it at False to remove case sensitivity.
Screenshot of Split PDF module configuration
Screenshot of Split PDF module configuration

Step 3: Run the PDF.co Module to Test Configuration

Then, let’s run the PDF.co module to test our Split by Text configuration.

Great! The PDF.co engine found the word invoice number in all 3 pages and has successfully split them into their individual PDFs.

Screenshot of PDF.co Module test configuration

Step 4: Check the Result

Our PDF Invoice has been split into 3 different PDFs!

The returned URLs are temporary. Check their expiry information and save every output PDF to your chosen storage while it remains available.

Verify each output’s first and last page, especially when an invoice spans multiple pages. If Invoice Number appears on continuation pages, this search can split an invoice into separate files. Use a start-page marker that matches your document boundaries.

Video Guide

Related Tutorials

See Related Tutorials