Turning a folder of PDFs into a webhook that returns JSON
Description and use
A streamlined n8n workflow that extracts structured data from PDFs using OCR.space and returns JSON/CSV via webhook.
Problem
Extracting structured data from PDFs at scale without expensive OCR services or custom infrastructure.
Outcome
Simplified PDF extraction workflow that eliminates the need for self-hosted OCR infrastructure, reduces cost, and provides structured output via webhook.
Workflow
- Receive PDF URL or upload via webhook POST
- Send PDF to OCR.space API
- Parse OCR text into structured JSON/CSV using layout heuristics
- Append extraction to Google Sheet (optional)
- Return plain text, JSON, and CSV in webhook response
Evidence
I ended up solving this with a single n8n workflow instead of a custom service
OCR.space, which has a genuinely usable free tier (25k requests/month, no card required)
- Record date: 2026-09-08T12:01:15.535Z