Skip to main content

Extract pages from PDF using Zapier: pull the pages you need into a new PDF with PDF4me

18 min read
PDF4me Team

Extract Pages From PDF is a PDF4me action for Zapier that copies a page range out of a PDF into a new file. A five step Zap watches a Dropbox folder, filters for PDFs, extracts the pages you name, saves the result under a traceable filename, and appends a line to a log file.

Pulling three pages out of a sixty page report is a ten second job. Doing it for every report that arrives, forever, is not. The online extractors that rank for this search all assume a human is sitting there picking page numbers. This walkthrough shows the version that runs by itself, with the screenshots and exact field values from a Zap that ran on 02 November 2026.

The flow at a glance
1. New File in Folder
Dropbox trigger watching /ExtractPages/Input/.
2. Filter conditions
Filter by Zapier stops anything that is not a PDF.
3. Extract Pages From PDF
PDF4me copies the named page range into a new PDF.
4. Upload File
Dropbox saves it to /ExtractPages/Output as Extracted-<name>.pdf.
5. Create or Append to Text File
Dropbox appends an audit line to extract-pages-log.txt.
The short version

Drop a PDF into a watched Dropbox folder. A filter throws out anything that is not a PDF, PDF4me extracts pages 1 to 2 into a fresh document, Dropbox saves it as Extracted-Quarterly-Report-Q3.pdf, and a log file gains one line recording the source, the range, and a share link. Five steps, no manual page picking.

Why-Based Q&A​

Why add a filter when the folder only gets PDFs? Folders rarely stay that tidy. A stray .docx, a .DS_Store, or a half uploaded file would otherwise reach PDF4me and fail the run. The filter costs nothing and turns a red error into a clean, deliberate stop.

Why does the output folder differ from the input folder? The trigger watches /ExtractPages/Input/. If the extracted PDF were written back into that same folder, Dropbox would report a new file and the Zap would trigger on its own output, then again, and again.

Why log to a text file? The Zap run history in Zapier expires. A line appended to extract-pages-log.txt is permanent, lives next to the documents, and is readable by anyone with Dropbox access rather than only by the Zap owner.

Why name the output from the source file? Extracted-Quarterly-Report-Q3.pdf tells you what it came from. A generic name does not, and once a few hundred of them sit in a folder the difference between a traceable name and an opaque one is hours.


What You'll Get​

Input: any PDF dropped into /ExtractPages/Input/. Output: a new PDF in /ExtractPages/Output containing only the pages you named, plus one audit line in /ExtractPages/Log/extract-pages-log.txt.


What You Need​

  • Zapier. Open the PDF4me Zapier app. This is a five step Zap, so it needs a paid Zapier plan.
  • PDF4me API key. Get your API key. Connect it the first time you add a PDF4me action.
  • Dropbox with three folders: /ExtractPages/Input/, /ExtractPages/Output and /ExtractPages/Log.
  • A multi page PDF to test with. The sample below is the one used in these screenshots.

Grab the samples first. Drop the bundle into /ExtractPages/Input/ once the Zap is published, and compare what lands in /ExtractPages/Output against the expected output.


The Flow at a Glance​

  1. New File in Folder (Dropbox trigger, polls every 2 minutes).
  2. Filter conditions (Filter by Zapier) continues only for PDFs.
  3. Extract Pages From PDF (PDF4me) with the page range.
  4. Upload File (Dropbox) saves the extract.
  5. Create or Append to Text File (Dropbox) writes the audit line.

Complete flow overview​

Zapier run history showing a successful five step Zap: Dropbox New File in Folder, Filter by Zapier, PDF4me Extract Pages From PDF, Dropbox Upload File, and Dropbox Create or Append to Text File

A successful run on 02 November 2026. The filter sits second so nothing reaches PDF4me unless it is a PDF.


Step 1: How do you watch a Dropbox folder for new PDFs?​

Flow so far: nothing yet, this is the trigger.

  1. Add Dropbox as the trigger app and pick the New File in Folder event.
  2. Configure:
    • Space: Default
    • Folder: /ExtractPages/Input/
    • Include files in subfolders?: False
    • Include file contents?: Yes
    • Include sharing link?: No

New File in Folder configuration​

Dropbox New File in Folder trigger configured with Space Default, Folder /ExtractPages/Input/, Include files in subfolders False, Include file contents Yes, and Include sharing link No

Include file contents must be Yes. Without it, step 3 gets a reference with no bytes behind it.


Step 2: Why filter before calling PDF4me?​

Flow so far: New File in Folder.

A filter is not an action, it is a gate. If the condition fails the run stops quietly and nothing downstream is charged or errored.

  1. Add Filter by Zapier and open Filter conditions.
  2. Set Only continue if:
    • Field: 1. File Ext from the trigger
    • Condition: (Text) Contains
    • Value: pdf

Filter conditions configuration​

Filter by Zapier step set to only continue if File Ext from step 1 contains pdf, with a green panel confirming the test record matched on File ext .pdf

The green panel confirms the test record would have continued, matching on File ext .pdf. Always retest the filter after editing it.

Tip. Contains is deliberately loose, so it matches .pdf and .PDF alike. Use Zapier's filter documentation if you need stricter rules, for example a size floor to skip zero byte uploads.


Step 3: How do you extract pages from a PDF by page number?​

Flow so far: New File in Folder plus Filter conditions.

This is the step that does the work, and it has only one field that really matters.

  1. Add PDF4me and pick the Extract Pages From PDF action.
  2. Configure:
    • File: the File output of step 1
    • File URL: leave empty, you supply either File or File URL, never both
    • File Name: Quarterly-Report-Q3.pdf
    • Page Numbers: 1-2

Extract Pages From PDF parameters​

FieldValue usedNotes
FileFile from step 1The source PDF. Supply either File or File URL.
File URLemptyAlternative to File when the PDF already has a public link.
File NameQuarterly-Report-Q3.pdfNames the input for the action.
Page Numbers1-2Required. The pages to keep.

Page Numbers syntax​

You wantYou type
A single page3
Several separate pages2,5,6
A continuous range4-7
A mix of both1,3,5-10
PDF4me Extract Pages From PDF action with File mapped from step 1, File URL empty, File Name Quarterly-Report-Q3.pdf, and Page Numbers set to 1-2

Page Numbers is the only required field beyond the file itself. Map it from an earlier step to make the range dynamic per document.

Tip. Page numbers are one based, so the first page is 1, not 0. Asking for a page beyond the end of the document fails the step rather than returning a shorter PDF.


Step 4: Where does the extracted PDF go?​

Flow so far: New File in Folder plus Filter conditions plus Extract Pages From PDF.

  1. Add Dropbox and pick the Upload File action.
  2. Configure:
    • Space: Default
    • Folder: /ExtractPages/Output
    • File: the File Url output of step 3
    • Overwrite: True
    • Specify File Name: the literal text Extracted- followed by the File Name from step 1
    • Specify File Extension: pdf
    • Include sharing link?: Yes

Upload File configuration​

Dropbox Upload File action with Folder /ExtractPages/Output, File from step 3 File Url, Overwrite True, Specify File Name combining the literal Extracted- with the step 1 file name Quarterly-Report-Q3, extension pdf, and Include sharing link Yes

Include sharing link is set to Yes here because step 5 puts that link into the log line.


Step 5: How do you keep an audit trail of what was extracted?​

Flow so far: New File in Folder plus Filter conditions plus Extract Pages From PDF plus Upload File.

  1. Add Dropbox and pick the Create or Append to Text File action.
  2. Configure:
    • Space: Default
    • Folder: /ExtractPages/Log
    • File Name: extract-pages-log.txt
    • File Content: the literal text Processed | source: then the File Name from step 1, then | extracted pages 1-2 saved as: then the Share Link from step 4
    • Include sharing link?: Yes

Create or Append to Text File configuration​

Dropbox Create or Append to Text File action writing to /ExtractPages/Log/extract-pages-log.txt, with File Content mixing literal text, the step 1 file name Quarterly-Report-Q3 and the step 4 Dropbox share link

Create or Append means the first run makes the file and every run after adds a line, so the log grows instead of being overwritten.


Run the Flow and Verify​

  1. Publish the Zap.
  2. Drop a multi page PDF into /ExtractPages/Input/ and wait for the next poll, up to two minutes.
  3. Open Zap runs and confirm all five steps show a green tick, with the filter reporting that it continued.
  4. Open /ExtractPages/Output and check the new PDF has only the pages you asked for, then open extract-pages-log.txt and confirm the new line.

What did you actually build? A gated, logged document pipeline. The gate keeps bad input out, the action does one job, and the log makes the whole thing auditable after the fact. Swap the middle action and the same five step shape handles compress, convert, watermark or OCR.


Common Variations You Can Add Without Rebuilding​

Make the range dynamic
Map Page Numbers from a spreadsheet row or a form field instead of typing 1-2, so each document gets its own range.
Email the extract
Add a Gmail or Outlook step and attach the File Url from step 3 to send just the relevant pages to a reviewer.
Split instead of extract
If you want every section rather than one range, swap in Split PDF or Split by Barcode and loop over the results.
Protect before sharing
Insert Protect PDF between steps 3 and 4 so the extracted pages are password protected before they reach the output folder.

Automation vs a manual extractor​

Zap vs manualThis ZapAn online extractor
TriggerA file landing in a folderA person opening a site
Page rangeTyped once, or mapped per documentRe-picked every single time
File namingThe Extracted- prefix plus the source nameWhatever the browser downloads
Audit trailA permanent log line with a share linkNone
Bad inputStopped by the filterDiscovered after the upload

Common questions​

How do I extract pages from a PDF?​

You name the pages you want and the tool copies them into a new document, leaving the original untouched. In this Zap, PDF4me's Extract Pages From PDF action takes the source file from Dropbox and a Page Numbers value of 1-2, and returns a new PDF containing only those two pages.

How do I extract pages from a PDF for free?​

For one document, free options are everywhere, including most browsers' own print dialog if you print to PDF and set a page range. The automated version is not free: it needs a paid Zapier plan, since this is a five step Zap, plus PDF4me API calls. The honest dividing line is volume. Below a few documents a month, do it by hand.

How do I extract pages from a PDF and create a new PDF?​

That is exactly what this action does. Extract Pages From PDF never modifies the source. It returns a brand new PDF, which step 4 then writes to a different folder under a new name, so you finish with both the original and the extract.

How do I extract pages from a PDF without Adobe?​

Nothing in this workflow touches Adobe software. PDF4me processes the file through its API, Zapier orchestrates, and Dropbox stores. The only desktop software involved is whatever you use to open the finished PDF.

Can I extract pages from a PDF by page number?​

Yes, and page numbers are the only way this action selects pages. Enter a single page as 3, separate pages as 2,5,6, a continuous range as 4-7, or a mix as 1,3,5-10. Numbering starts at 1.


Troubleshooting​

The step fails on a page number

You asked for a page the document does not have. A ten page PDF cannot return 1-12. If the range varies per file, map it from data rather than hard coding it, and keep the upper bound within the shortest document you expect.

The Zap never runs

Check the filter first. If File Ext did not contain pdf, the run stopped at step 2 on purpose and will show as "did not continue" rather than as an error.

The log file keeps getting replaced

You are using Upload File rather than Create or Append to Text File. Only the append action adds to an existing file, and the file name must match exactly on every run.

The Zap triggers on its own output

The output or log folder is inside the watched folder. Keep /ExtractPages/Output and /ExtractPages/Log outside /ExtractPages/Input/, as in this build.


Next Steps​

The same five step pattern (watch, gate, act, save, log) handles any "a document arrived, do one thing to it" automation.