Extract tables
Find tables in a PDF that holds text (invoices, statements, reports) by how the text lines up in columns, and return each as a Data Table. Scanned PDFs need OCR first.
Command in the PDF toolkit · id ooa.pdf/extract_tables · 6 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | PDF file. | |
| Pages | String | No | Pages to read, e.g. 1,3-4; every page when empty. | |
| First row is the header | Boolean | No | true | The first row of each table holds the column names; Column1, Column2 … when off. |
| Merge across pages | Boolean | No | true | Join a table that continues at the top of the next page (same number of columns) into one, leaving out a repeated header row. |
| Minimum columns | Number | No | 2 | Lines need at least this many separate columns to count as a table. |
| Password | Credential | No | Password for protected PDFs. |
Outputs
| Output | Type | What it is |
|---|---|---|
| tables | List | Every table found, as Data Tables, top to bottom and page by page. |
| table | Table | The first (or only) table; an empty table when none was found. |
| count | Number | Number of tables found. |