extract_pdf_tables
Extract tables from local text PDFs and return each table as CSV text, or save CSV files to a chosen directory; optionally limit pages and choose line- or spacing-based detection.
Instructions
Pull the tables out of a local text PDF.
path: full path to a PDF on this computer. pages: optional, like "1,3-5". Empty means all pages. strategy: "auto" (default), "lines" (ruled borders) or "text" (lined up by spacing). output_dir: optional. If set, each table is saved there as a CSV and the file paths are returned. If empty, the CSV text of each table is returned.
Scanned (image-only) pages have no text and are skipped. Returns [] if no tables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| strategy | No | auto | |
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |