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

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.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Yes | The 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 Name | No | Custom 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 Text | Yes | The 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 Type | Yes | Controls 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 Field | Description |
|---|---|
File | URL of the ZIP file containing all split PDF documents - download or upload this to a storage service in the next step |
File Name | ZIP filename without the extension |
Full File Name | Complete ZIP filename including the .zip extension |
File Extension | Always .zip - the output package format for split documents |
Quick Setup
- 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.
- Add an action step → search PDF4me → select Split PDF by Text.
- Authenticate with your PDF4me API key if not already connected.
- Map File from the trigger output (the binary file field or PDF URL).
- Enter Split Text - the exact phrase that appears at each split point in your PDF (e.g.
EXHIBIT A,DEPARTMENT:,NEW FORM). - Choose Split Type - Before, After, or Remove the separator page based on how your document is structured.
- Optionally set File Name for the output ZIP; leave blank to auto-name from the source file.
- Test the step - Zapier will process a sample PDF and return the ZIP URL in the File output.
- 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.
Split a consolidated monthly report at each department header and email the relevant section to each department lead automatically.
- Google Drive: New File in Folder - watch 'Monthly Reports' folder for the consolidated PDF
- PDF4me: Split PDF by Text - map File; Split Text = 'DEPARTMENT:'; Split Type = Before the Text; File Name = 'report_sections'
- Google Drive: Upload File - save the output ZIP to 'Reports – Split' folder
- Gmail: Send Email - attach the ZIP URL and notify the report coordinator; a sub-Zap routes each section to the correct department lead
When a signed contract PDF arrives with exhibit cover pages, split it into the main agreement and individual exhibits - discarding the cover sheets.
- Gmail: New Attachment - filter for emails with subject containing 'Executed Contract'
- PDF4me: Split PDF by Text - map File (attachment); Split Text = 'EXHIBIT'; Split Type = Remove the page containing the Text
- Google Drive: Upload File - save the ZIP to 'Contracts – Split' folder organised by date
- Slack: Post Message to #legal - notify the team with the contract name and Drive link so attorneys can retrieve their assigned exhibit
Automatically separate batch-printed forms from a single PDF into individual files using a text marker on each form's first page.
- Dropbox: New File in Folder - watch 'Batch Scans' folder where bulk form PDFs are dropped
- 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)
- Dropbox: Upload File - save the split ZIP to 'Forms – Individual' folder
- 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