pdf_to_excel
PDF to Excel — Extract tables from PDFs into XLSX / CSV / TSV / JSON. Uses tabula-java (lattice + stream modes) with LibreOffice as fallback. Supports page ranges, table selection, sheet strategy (per-table/per-page/single), OCR for scanned PDFs (Starter+), JSON output (Starter+), and a non-destructive inspect endpoint that reports row/col counts plus ragged/sparse confidence flags. [category: pdf]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Input PDF | |
| pages | No | Optional page range e.g. '1-5,10'. Empty = all pages. | |
| engine | No | Table detection engine. auto = tabula lattice → stream → libreoffice fallback. | auto |
| format | No | xlsx/csv/tsv are file downloads; json returns structured data. | xlsx |
| ocrLang | No | Any Tesseract code, passed raw to ocrmypdf -l (default eng). Read only when ocrFirst=true; on OCR failure extraction continues un-OCR'd. | eng |
| ocrFirst | No | Run ocrmypdf before extraction (beta — scanned PDFs). | |
| sheetMode | No | XLSX sheet strategy. CSV/TSV/JSON ignore this. | per-table |
| tableIndexes | No | Comma-separated 0-based indexes to keep (e.g. '0,2,3'). Empty = all tables. |