Skip to main content

Split PDFs by Barcode in Zapier: New File → Split by Barcode → Upload (3 Steps)

· 11 min read
SEO and Content Writer

When you scan a stack of documents into one PDF—batch invoices, mail with separator sheets, or reports with barcode dividers—you need each document in its own file. PDF4me’s Split by Barcode action detects barcodes, filters by text (e.g. starts with PDF4me), and splits before, after, or at the barcode page. In Zapier, you can wire this into a three-step Zap: watch a Dropbox folder, split the PDF, and upload the results as individual files or a single ZIP.

In a nutshell: Drop a PDF like Barcode Test.pdf into a folder → Zap triggers → Split by Barcode cuts it at each barcode → Upload saves Barcode Test_1.pdf, Barcode Test_2.pdf, or bundles them in Outputs.zip.

What You’ll Get at the End

Input: One PDF (e.g. Barcode Test.pdf) with barcode separators. Output: Multiple PDFs (Barcode Test_1.pdf, Barcode Test_2.pdf, etc.) or a ZIP archive (Outputs.zip) containing all split files.

Input file: Barcode Test.pdf

Input: one PDF with barcode dividers.

Output files: Barcode Test_1.pdf, Barcode Test_2.pdf

Output: individual split PDFs.

Output as ZIP: Outputs.zip

Or one ZIP file with all split PDFs inside.


What Do You Need?


The Zap in 3 Steps

  1. New File in Folder (Dropbox) — Triggers when a PDF lands in a folder like /Blog Data/Split By Barcode.
  2. Split by Barcode (PDF4me) — Splits the PDF using barcode text and filter settings. Returns individual files or a ZIP.
  3. Upload File (Dropbox) — Saves the split result to a folder.
Zapier workflow: Dropbox New File in Folder (2 min) → PDF4me Split by Barcode → Dropbox Upload File

Step 1: New File in Folder (Trigger)

Zap so far: Trigger only.

  1. Add DropboxNew File in Folder as the trigger.
  2. SpaceDefault (or choose your space).
  3. Folder */Blog Data/Split By Barcode (or your target folder).
  4. Include files in subfolders?False (or True for nested folders).
  5. Include file contents?Yes. Must be Yes so the file content is passed to Split by Barcode.
  6. Include sharing link?Yes (optional).
  7. Click Continue and test the trigger.
New File in Folder: Space Default, Folder /Blog Data/Split By Barcode, Include file contents Yes

Important: Set Include file contents? to Yes. If it’s No, Zapier passes a reference instead of the file, and the Split step will fail.


Step 2: Split by Barcode (Action)

Zap so far: Trigger → Split by Barcode.

  1. Add PDF4meSplit by Barcode.
  2. File * — Map 1. File from the Dropbox trigger. Use the field with the actual file content, not “File: (Exists but not shown).”
  3. Specify File Name — Map 1. File Name and 1. File Ext (e.g. Barcode Test + .pdf).
  4. Barcode Text *PDF4me (or the text you want to filter by).
  5. Barcode Filter *Starts with (or Contains, Ends with, Exact).
  6. Barcode Type *Any Type.
  7. Split Barcode Page *Before the barcode (or After, Remove the page).
  8. PDF Render Dpi *150 (bump to 200+ if barcodes are small or blurry).
  9. Combine Pages with Same BarcodesFalse.
  10. Return as ZipTrue to get a single ZIP, or False for individual files (Zapier may return one item per file).
  11. Click Continue and test.
Split by Barcode: Barcode Text PDF4me, Filter Starts with, Split Before the barcode, DPI 150, Return as Zip True

Pro tip: With Return as Zip = True, the action returns one ZIP file—easier to upload in a single step. With False, you get multiple output items; you’d need a Zapier Loop to upload each one.


Step 3: Upload File (Action)

Zap so far: Trigger → Split by Barcode → Upload File.

  1. Add DropboxUpload File.
  2. SpaceDefault.
  3. Folder * — Choose an output folder (e.g. /Blog Data/Split By Barcode/Output or a different path than the trigger folder).
  4. File * — Map 2. File Url from the Split by Barcode step.
  5. OverwriteFalse (or True to replace existing files).
  6. Specify File NameOutputs (or use dynamic data from the trigger).
  7. Specify File Extension.zip (when Return as Zip is True).
  8. Include sharing link?Yes (optional).
  9. Click Continue and test.
Upload File: Folder /Blog Data/Split By Barcode, File from step 2, File Name Outputs, Extension .zip

Possible Zap loop: If you upload to the same folder that triggers the Zap, Zapier may detect a loop—the new file triggers the Zap again. Use a different output folder (e.g. a subfolder like /Blog Data/Split By Barcode/Output) to avoid this.


Quick Reference: Key Parameters

ParameterValueNotes
Barcode TextPDF4meOnly barcodes that match trigger a split
Barcode FilterStarts withOr Ends with, Contains, Exact
Split Barcode PageBefore the barcodeSplit before, after, or remove the separator page
PDF Render Dpi150Bump to 200+ if barcodes are small or blurry
Return as ZipTrueOne ZIP file; easier to upload in a single step

For full parameter details, see Split by Barcode — Zapier.


Troubleshooting

"File: (Exists but not shown)"

That option often passes a reference instead of the file. Pick the field that contains the actual file content. See Zapier and Power Automate Tips for file handling.

"File is Empty" or no split output

Ensure Include file contents? is Yes in the trigger. Check that your barcode text and filter match what’s in the PDF—if nothing matches, you’ll get one output (the whole file).

Possible Zap loop

Upload to a different folder than the trigger. Use a subfolder (e.g. /Blog Data/Split By Barcode/Output) or a separate path so the new file doesn’t re-trigger the Zap.

401, 402, or other API errors

PDF4me Troubleshooting covers 401 (API key), 402 (credits), and more.


Try the API Yourself

Test the Split by Barcode API without building a Zap:


Next Steps

You’re set.
  • Drop a test PDF with barcodes into your folder and run the Zap. Check the Upload step output for the new file(s).
  • Tweak Barcode Text and Barcode Filter (Contains, Exact, etc.) to match your documents.
  • Need individual PDFs instead of a ZIP? See Split PDF by Barcode in Make for an Iterator-based approach.