Extract tables from a PDF
pdf_extract_tablesExtract tables from PDFs, including ruled, shaded, borderless, and chart data, and save them as Excel, CSV, JSON, or Markdown for easy analysis.
Instructions
Find the tables in a PDF (ruled, shaded and borderless, plus charts drawn as vectors, as tables of their values) and write them as Excel (.xlsx, one sheet per table), CSV, JSON or Markdown. The output name must end in the format's extension (.xlsx, .csv, .json, .md).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| pages | No | Page numbers or ranges, such as "1, 3-5". Omit for every page. | |
| format | No | xlsx | |
| output | Yes | Path for the new file, ending in .xlsx, .csv, .json or .md to match the format, inside an allowed folder. Must not exist yet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| format | Yes | ||
| output | Yes | ||
| tables | Yes |