Templates / Prepare PDFs for RAG with pdfRest OCR and Markdown chunks

Prepare PDFs for RAG with pdfRest OCR and Markdown chunks

Unknown

by pdfRest API Toolkit ✓ · 1 views · created 2026-10-21 · Document Extraction, AI RAG

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 28 nodes and runs when someone submits an n8n form (“Prepare a PDF for RAG”). Along the way it connects Pdfrest (community).

How it runs

Trigger: When someone submits an n8n form (“Prepare a PDF for RAG”).

  1. Settings (Code): runs custom JavaScript code
  2. Check upload and checkpoint (Code): runs custom JavaScript code
  3. Inspect source PDF (Pdf Rest): pdf info
  4. Explain preparation failure (Code): runs custom JavaScript code
  5. Plan next page batch (Code): runs custom JavaScript code
  6. Preparation could not finish (n8n Form): shows the next form page
  7. Loop pages (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Mark preparation failure (Stop and Error): stops the run with an error
  9. Build review package (Code): runs custom JavaScript code
  10. Page work item (Code): runs custom JavaScript code

…plus 17 more steps. See the full node list below.

Services it uses

Pdfrest (community)

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that @pdfrest/n8n-nodes-pdfrest is verified or supports 3.0 (used in Inspect source PDF, Read original page, Isolate page for OCR).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

Quick overview Prepare PDFs for RAG with a low-code workflow that extracts Markdown, applies OCR when needed, and creates page-referenced text chunks. Resume processing from checkpoints, review flagged pages, and download the results before indexing in your…

Excerpt from pdfRest API Toolkit's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.