Extract pages from a PDF into their own file
One person's expense claims and receipts pulled out of a 28-page team pack.
A real run on 14 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. The waiting is sped up; it took 1 min 15 s in real time.
The short answer.
If you know the page numbers, it's quick: in Preview on a Mac select the thumbnails and drag them to the desktop, and on Windows the free PDF24 Creator has an Extract pages tool. Most of the work is finding the pages first. Stella (stella.sh) finds them from a description, like one person's claims and their receipts, and saves just those pages as a new PDF.
Stella does this on Windows, Mac and Linux.
What happened.
A 7-page PDF in about 1¼ minutes. Checked afterwards against an answer key written before the run: exactly Jordan Ellis's pages (three claims, a continuation page and three receipts), not the similar name or the approved-only claim, in their original order, with the full pack unchanged.
The company, its staff and their expenses are fictitious, made for this run. The work is sped up 2×. The test pack's claim totals really don't match their items (a quirk of how it was made), and Stella noticed that without being asked.
How Stella does it.
- Opens “Team expenses October 2026.pdf”: 28 pages, a summary and 11 claims from 6 people, with continuation pages and receipts that only give a claim number
- Finds Jordan Ellis's three claims (EXP-1043, 1051 and 1058) and follows each claim number to its continuation page and receipts
- Leaves out Jordan Ellison's claim (a different person) and a claim by someone else that Jordan only approved
- Saves the 7 pages in their original order as “Jordan Ellis expenses October 2026.pdf” next to the pack, which is unchanged, and sends nothing
- Notes what Jordan will see (the old page footers, the approver's name) and that each claim's total is lower than its items add up to
The prompt.
In my Documents there's a PDF of everyone's expense claims for October. Pull out all the pages for Jordan Ellis's claims, including the receipts, into a separate PDF I can send to Jordan.
This is the exact prompt from the recording. If your files are somewhere else, say where.
Do it yourself.
Find the pages first
Scroll through and write down the page numbers you need. Watch for pages that belong but don't repeat the name, like a continuation page or a receipt that only carries a claim or invoice number.
On a Mac: Preview
View, Thumbnails, then Command-click the pages you want. Drag the selection onto the desktop to make a new PDF of just those pages, or use File, Print with a page range and Save as PDF.
On Windows: PDF24 Creator
Install the free PDF24 Creator (offline) and open Extract pages. Click the pages or type a list like 7-10, 18-19, 25, and save the new file.
Check before you send it
Open the new file and check each page belongs to the right person. Pages keep their old footers (“page 9 of 27”), and other names on the page, like an approver, go with them.
Where it stops.
- Stella ties pages to a person through their text: names, claim numbers, references. A scanned pack is read with OCR first, which takes longer.
- The extracted pages are copies, so footers and any other names printed on them stay. Stella points these out but doesn't edit them unless you ask.
- The pack's text goes to the AI model you use in Stella so it can find the pages; the new PDF is made on your computer.
- Recorded on Linux with free Python PDF tools. On a Mac or Windows PC Stella uses the same kind of tool.
Questions.
What's the difference between extracting and splitting a PDF?
Extracting takes some pages into a new file; splitting breaks the whole PDF into parts. For that, see split a PDF into multiple files.
Can I remove the pages from the original instead?
Yes: delete pages from a PDF. Keep a copy of the full file first.
How do I extract pages from a PDF on Windows without Adobe?
PDF24 Creator is free and works offline. Or print the page range to “Microsoft Print to PDF” from any PDF viewer.
Is Stella free for this?
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.
Can I control what Stella changes on my computer?
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.
Checked against these sources on 14 November 2026.