---
title: "Extract tables from PDFs with LLMs"
url: "https://xlrocket.men/extract-tables-from-pdfs-with-llms"
markdown_url: "https://xlrocket.men/extract-tables-from-pdfs-with-llms.md"
format: "link"
published: "2026-10-29T12:24:34.000Z"
link_url: "https://openrouter.ai/blog/tutorials/extract-tables-from-pdf-llm/"
site: "火箭君 MEN"
---

# [Extract tables from PDFs with LLMs](https://openrouter.ai/blog/tutorials/extract-tables-from-pdf-llm/)

译：OpenRouter 教程：用 LLM + 严格 JSON schema 从 PDF 抽表格——五份 PDF 实测；扫描件别走纯文本 parser（会静默空表）

- 明天工作流：发票/报表进 CSV 的可复用套路；务必检查 finish\_reason 与空 rows
- 机密 PDF 先问清会否经第三方 OCR；本机有 MiniCPM-OCR 类时优先本机
- 交不交数据：敏感表优先本机抽取
