OpenRouter publishes a guide to extracting PDF tables with LLMs
OpenRouter published a guide on October 29, 2026, explaining how to send PDFs to file-reading LLMs with a strict JSON schema that produces typed table rows. In its first-party test of five PDFs, including two scans, every model that read the PDFs directly extracted all 644 cells correctly; the guide also covers OCR routing, empty results, output-token limits and cross-page tables.
The guide provides a concrete implementation pattern and failure checks for structured PDF extraction, but its evidence comes from only five OpenRouter-generated PDFs.
How to Extract Tables from a PDF with an LLM
OpenRouter ·10/29/2026


To extract tables from a PDF with an LLM, send the PDF to a model that can read files, together with a strict JSON schema that describes one row of the table. The model returns typed rows. Quantities come back as integers, a loss written as (3,878) comes back as -3878, and a table that runs across two pages comes back as one list.
We tested this on five PDFs, two of them scans. Every model that read the PDF directly got all 644 cells right. The failures in our tests came from the route the PDF took to reach the model, and two of them returned a normal response with no error.
#OpenRouter#mistral-ocr#DeepSeek V4.1 Flash#Claude Haiku 5.5#GPT-6 Luna#Cloudflare AI