extract_pdf_tables
Extract structured tables from PDFs and get them as Markdown, CSV, or JSON. Preserves page numbers and dimensions for financial statements, spec sheets, and price lists.
Instructions
Extract data tables from a PDF with structure preserved — returns each table's page number, dimensions and content as Markdown, CSV or JSON rows. Ideal for financial statements, spec sheets, price lists and any document where tables matter more than prose. Scans up to 100 pages per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of the document to fetch and convert. Leave empty when passing file_base64 instead. | |
| pages | No | 1-based page selection like '1,3-5'. Empty means all pages. | |
| format | No | Output format for each table: 'markdown' (default), 'csv' or 'json'. | markdown |
| filename | No | Original filename with extension (e.g. 'report.docx'). Used as a format hint when content type cannot be detected automatically. | |
| password | No | Password for encrypted PDFs. Empty for normal files. | |
| max_tables | No | Maximum number of tables to return (default 50). | |
| file_base64 | No | Base64-encoded file content (for documents not reachable by URL). Decoded size limit: 30 MB. Leave empty when passing url instead. |