Skip to main content

Split PDF by Text for Zapier

What this action does

What this action does: The PDF4me Split PDF by Text action scans a PDF for a specific text phrase you define - a section header, an exhibit label, a form separator, or any unique string - and splits the document at every occurrence. Choose whether to cut before the phrase, after it, or remove the separator page entirely. The output is a ZIP file containing all the individual split PDFs, ready to download, archive, or distribute. No barcode printing or manual splitting required - any existing text marker in your documents becomes an automatic split point inside your Zapier workflow.

Authenticating Your API Request

Every PDF4me action in Zapier requires a valid API key. Connect PDF4me once in Zapier's account settings - your key is stored securely and reused across all PDF4me Zaps automatically.

Important Facts You Should Not Miss

The text match is exact and case-sensitive
"EXHIBIT A" and "Exhibit A" are treated as completely different phrases. The Split Text value must match character-for-character - including spaces and punctuation - exactly as it appears in the PDF. Test with a known phrase first to confirm the match before building downstream logic.
Split Type controls which page the cut happens on
"Before the Text" ends the current document just before the separator page and starts the next one at that page. "After the Text" keeps the separator page at the end of the current document and starts the next one on the following page. "Remove the page containing the Text" discards the separator page entirely - use this for blank divider pages or cover-sheet-style markers you do not want in any output document.
The output is a ZIP - plan your downstream steps accordingly
The action returns a single ZIP file URL in the File output field, not individual PDF URLs. Your next Zap step must handle a ZIP - upload it to Google Drive or Dropbox, trigger a storage unzip action, or pass the URL to a Code step. If you need to process each split PDF separately, use a sub-Zap triggered by new files in the unzipped folder.
Split PDF by Text action in Zapier – PDF4me
Split PDF by Text action configured inside a Zapier workflow

Parameters

⚠️ File, Split Text, and Split Type are all required. Missing any one causes the action to fail. File Name is optional - omit it and the output name is derived from the source file.

ParameterRequiredWhat it doesExample
FileYesThe PDF to split. Map the binary file output from a Zapier trigger or previous action - Google Drive file, Gmail attachment, OneDrive/Dropbox file, or a PDF generated by an earlier step. A direct URL to a PDF can also be passed.consolidated_report_may2026.pdf
File NameNoCustom name for the output ZIP file. If omitted, the name is derived automatically from the source File field. Do not include a path - just the base filename without extension.split_contracts_may2026
Split TextYesThe exact text phrase to search for as the split marker. Must match verbatim - including casing, spaces, and punctuation - as it appears in the PDF. Use a phrase unique to each section boundary to avoid false matches.EXHIBIT A
Split TypeYesControls where the document is cut relative to the page containing the text. "Before the Text" - the split occurs before the separator page (separator becomes first page of the next document). "After the Text" - split occurs after the separator page (separator stays at the end of the current document). "Remove the page containing the Text" - the separator page is discarded and not included in any output document.Remove the page containing the Text

Output Fields

Output FieldDescription
FileURL of the ZIP file containing all split PDF documents - download or upload this to a storage service in the next step
File NameZIP filename without the extension
Full File NameComplete ZIP filename including the .zip extension
File ExtensionAlways .zip - the output package format for split documents

Quick Setup

  1. Create or open a Zap and add a trigger that provides a multi-section PDF - Google Drive new file, Gmail attachment, OneDrive, Dropbox, or an earlier Zap step that generates a document.
  2. Add an action step → search PDF4me → select Split PDF by Text.
  3. Authenticate with your PDF4me API key if not already connected.
  4. Map File from the trigger output (the binary file field or PDF URL).
  5. Enter Split Text - the exact phrase that appears at each split point in your PDF (e.g. EXHIBIT A, DEPARTMENT:, NEW FORM).
  6. Choose Split Type - Before, After, or Remove the separator page based on how your document is structured.
  7. Optionally set File Name for the output ZIP; leave blank to auto-name from the source file.
  8. Test the step - Zapier will process a sample PDF and return the ZIP URL in the File output.
  9. Add downstream steps - upload the ZIP to Google Drive or Dropbox, send a download link via email or Slack, or trigger a sub-Zap to process each extracted PDF.

Workflow Examples

Workflow ExamplesCommon Zapier patterns using Split PDF by Text.
Monthly Report with Section Headers → Split → Email to Department Leads

Split a consolidated monthly report at each department header and email the relevant section to each department lead automatically.

  1. Google Drive: New File in Folder - watch 'Monthly Reports' folder for the consolidated PDF
  2. PDF4me: Split PDF by Text - map File; Split Text = 'DEPARTMENT:'; Split Type = Before the Text; File Name = 'report_sections'
  3. Google Drive: Upload File - save the output ZIP to 'Reports – Split' folder
  4. Gmail: Send Email - attach the ZIP URL and notify the report coordinator; a sub-Zap routes each section to the correct department lead
Executed Contract with Exhibits → Split and Remove Separator → Archive Each Part

When a signed contract PDF arrives with exhibit cover pages, split it into the main agreement and individual exhibits - discarding the cover sheets.

  1. Gmail: New Attachment - filter for emails with subject containing 'Executed Contract'
  2. PDF4me: Split PDF by Text - map File (attachment); Split Text = 'EXHIBIT'; Split Type = Remove the page containing the Text
  3. Google Drive: Upload File - save the ZIP to 'Contracts – Split' folder organised by date
  4. Slack: Post Message to #legal - notify the team with the contract name and Drive link so attorneys can retrieve their assigned exhibit
Bulk-Printed Forms with Separator Text → Split → Route to Processing Queues

Automatically separate batch-printed forms from a single PDF into individual files using a text marker on each form's first page.

  1. Dropbox: New File in Folder - watch 'Batch Scans' folder where bulk form PDFs are dropped
  2. PDF4me: Split PDF by Text - map File; Split Text = 'FORM ID:'; Split Type = After the Text (so the FORM ID line stays with each form for identification)
  3. Dropbox: Upload File - save the split ZIP to 'Forms – Individual' folder
  4. Zapier Webhook or Code Step: Parse filenames from the ZIP to extract form IDs and trigger downstream queues in Airtable, Salesforce, or a custom database

Frequently Asked Questions

Is the Split Text search case-sensitive?+
Yes - the match is exact and case-sensitive. "EXHIBIT A" and "Exhibit A" are treated as different phrases. The value you enter in Split Text must match character-for-character - including spacing and punctuation - exactly as the text appears in the rendered PDF.
What happens when the split text is not found in the PDF?+
If the phrase is not detected, the action returns the original document as a single-file ZIP without splitting. Add a Zapier filter after the step - for example, check whether the ZIP File Name contains a known split indicator or use a Code step to count files - if your downstream logic depends on a successful split.
Which Split Type should I use to remove separator pages?+
Choose "Remove the page containing the Text". This option splits at each occurrence of the phrase and excludes the page holding the marker from all output documents, giving you clean content-only PDFs with no cover-sheet stubs or blank separator pages.
How do I handle the ZIP output in the next Zap step?+
Map the output File URL to a storage upload step - Google Drive, OneDrive, Dropbox, or SharePoint. To process each split PDF individually, use a sub-Zap triggered by new files in the storage folder where the ZIP is extracted, or use a Code by Zapier step to parse the ZIP contents and loop over each file URL.
Can I split on multiple different text phrases in one action?+
No - the action accepts a single Split Text phrase per run. To split on different markers (e.g. both "EXHIBIT A" and "SCHEDULE 1"), chain multiple Split PDF by Text actions in sequence, or pre-process your PDF to standardise all section headers to a single common phrase before the split step.

Get Help