跳至主要內容
PPDF123

Extract Tables From a PDF

Extract Tables finds aligned table rows in a PDF, shows each table in an editable preview, and exports your corrected rows as Excel or CSV. Pages without text can be read with OCR, so check numbers read from scans before relying on them.

把檔案拖到這裡,或點一下選擇

支援 PDF · 每個檔案上限 500.0 MB · 一次最多 20 個檔案

也可以按 Ctrl/Cmd+V 或從剪貼簿選單貼上檔案。

文件語言
最多選擇 4 種。語言越少,辨識越快也越準確。

Extract Tables finds table-like blocks in a PDF and shows them in a preview you can correct before anything is downloaded. Rows are detected from aligned columns in the PDF's text layer, and columns follow the blank channels the rows share, so a cell left empty keeps its place instead of shifting the rest of the row.

In the preview, click a cell to fix it, delete a stray row or column, merge a wrapped line into the row above, or untick a table you do not want. Excel and CSV downloads use exactly what the preview shows. In Excel, plain numbers such as 1,234.50 become numeric cells, while values with leading zeros, symbols or units stay text.

Scanned pages are optional. With OCR on, pages that have no text layer are rendered, recognized with Tesseract in the languages you choose, and rebuilt into rows from the word positions. That works best on clean, straight scans; check amounts and dates read from a scan before you rely on them. Up to 50 pages that need OCR are handled per request on this site.

功能

  • Editable preview: fix cells, delete rows or columns, merge wrapped lines
  • Excel and CSV exports built from the corrected preview
  • Empty cells keep their column; plain numbers become numeric cells in Excel
  • Optional OCR for scanned pages, with a language choice
  • Optional page range

適用情境

  • Moving a bank or card statement into a spreadsheet
  • Extracting an invoice's line items or a report's tables
  • Checking what a PDF's tables look like before choosing an export

How do I extract tables from a PDF?

  1. Upload the PDF and, if needed, enter a page range
  2. Leave OCR on for scanned pages and pick their languages, or turn it off to read only the text layer
  3. Click Process and review each table in the preview
  4. Correct anything that is off, then download Excel or CSV

限制與邊界

  • Detection needs aligned columns; tables typeset with single spaces between columns may not register
  • Merged cells, colored headers and borders are not reconstructed
  • OCR on scans is less exact than reading a text layer: verify figures, dates and signs
  • At most 50 pages that need OCR per request on this site
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

常見問題

Why were no tables found?
A table needs at least two rows with aligned columns. Prose, a single row and tables with single-space gaps do not qualify. For image-only pages, keep OCR on.
How accurate is OCR on a scanned table?
It depends on the scan. Clean, straight, high-resolution pages usually come out well, but a wrong digit or a shifted column is possible, so check the preview before exporting.
Why is a number stored as text in Excel?
Only plain numbers become numeric cells. Values with a leading zero, a currency symbol, a percent sign or a unit stay text so account numbers and codes are not altered.
Does the preview change my PDF?
No. Edits only affect the Excel or CSV you download; the PDF is left alone.

最後更新:

用程式碼呼叫

本站每個工具都是普通 REST 介面。匿名使用不需要帳號或 API Key,給瀏覽器、開發者與 AI 代理同樣可用。

curl -X POST "https://pdf123.xyz/api/v1/convert/pdf/tables" \
  -F "[email protected]" \
  -F "pageNumbers=all" \
  -F "ocr=auto" \
  -F "languages=eng" \
  -o output.pdf

也提供 MCP 工具,供說 Model Context Protocol 的用戶端呼叫(JSON-RPC 2.0,POST /mcp)。 完整 API 文件

在 AI 代理中使用

Skill

裝上這個 Skill,Claude Code、Codex、Cursor 等 AI 代理就能替你完成「擷取 PDF 表格」: /skills/pdf123-pdf-to-tables.md

全部 Agent Skill

檔案只用於本次處理,完成後自動刪除。