Disclosure: I built this. It’s my own Apify Actor (Tidyflow Labs), free to try; link at the bottom.
The problem: you have a sheet (or webhook) full of public PDF links (annual reports, policy docs, invoices you’re allowed to process) and you want plain text per page to chunk and send to an LLM or vector store. Downloading + parsing inside n8n gets messy fast with many files.
What I use: one HTTP Request node that calls the PDF to Text Actor on Apify and returns one JSON item per PDF, ready for the next node.
Workflow
- Trigger / source (Google Sheets, Webhook, Schedule…) that yields PDF URLs.
- Code or Aggregate node to build the input body:
{
"pdfUrls": [
{"url": "https://www.irs.gov/pub/irs-pdf/p15.pdf"},
{"url": "https://www.irs.gov/pub/irs-pdf/p17.pdf"}
],
"pages": "1-20",
"includePageTexts": true,
"keywords": ["deadline", "penalty"]
}
- HTTP Request node
- Method:
POST - URL:
https://api.apify.com/v2/acts/tidyflowlabs~pdf-text-extractor/run-sync-get-dataset-items - Header:
Authorization: Bearer <your Apify API token>(store it as an n8n credential, not in the node) - Body: JSON from step 2
- It waits for the run and returns the dataset items as an array, so n8n splits them into one item per PDF.
(The Apify node for n8n works too: run the Actortidyflowlabs/pdf-text-extractor, then get its dataset items.)
- Method:
- IF node:
{{$json.success}}is true and{{$json.hasTextLayer}}is true. The false branch is where broken links (errorfield) and scanned files go. - Map fields for the AI step:
{{$json.url}},{{$json.title}},{{$json.pageCount}}{{$json.text}}for full text, or split out{{$json.pages}}([{page, text}]) to chunk per page and keep page numbers for citations{{$json.keywordHits}}e.g.{"penalty": {"count": 6, "pages": [10, 12, 17]}}{{$json.sha256}}to skip PDFs you’ve already embedded
- Send chunks to your embeddings / vector store / LLM node.
Real output (test run, Oct 25, 2026; input from step 2 plus i1040gi.pdf and one broken link)
| pages (extracted) | words | keywordHits | time | |
|---|---|---|---|---|
| p15.pdf | 59 (20) | 19,187 | deadline: 2 on p5; penalty: 6 on p10, 12, 17 | 2.7 s |
| i1040gi.pdf | 126 (20) | 14,025 | none | 4.6 s |
| p17.pdf | 142 (20) | 23,809 | deadline: 4 on p14; penalty: 15 on p5, 8, 13, 16, 18 | 5.0 s |
| notapdf_xyz.pdf | - | - | error: 404 Not Found, not charged |
0.3 s |
One item, trimmed:
{"url": "https://www.irs.gov/pub/irs-pdf/p15.pdf", "title": "2026 Publication 15", "pageCount": 59, "pagesExtracted": 20, "wordCount": 19187, "hasTextLayer": true, "success": true, "keywordHits": {"deadline": {"count": 2, "pages": [5]}, "penalty": {"count": 6, "pages": [10, 12, 17]}}}
Honest limits
- Text layer only, no OCR. Scanned or image-only PDFs return little or no text and come back with
hasTextLayer: false, so route those to an OCR tool. - Password-protected PDFs, 404s and non-PDF links return an item with an
errorand aren’t charged. - Use direct-download links (a Drive “view” page won’t work). It only fetches the links you give it and respects robots.txt.
Price
Pay per result: $1.20 per 1,000 PDFs on Apify’s Free plan (lower on paid Apify plans), no start fee; failed PDFs aren’t charged. An empty input {} runs a demo on three IRS forms.
Try it: PDF Text Extractor - PDF to Text & JSON Parser, Bulk URLs · Apify Happy to answer questions or add a field if it helps your workflow.