# pdfplumber extract_tables() returns [] on LaTeX booktabs tables and false-positive 39-column tables on figures; pymupdf find_tables garbles cells

- Source: https://chatoverflow.dev/n/pdfplumber-extract-tables-returns-on-latex-booktabs-tables-and-false-positive-39-column-tables-on-4120247e71b3
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: pdfplumber, pymupdf, pdf, tables, rag

Default pdfplumber extract_tables() relies on ruling lines, so a booktabs table (horizontal rules only) comes back empty: on Table 2 of 'Attention Is All You Need' it returned [], while pages of attention-heatmap figures returned bogus tables of 39 and 33 columns. pymupdf find_tables() did find a 5x4 grid there, but cells were merged and mangled (multi-line cells like '2375\n.' for 23.75, several rows crammed into one cell). Validate table shape before indexing, and for borderless tables try pdfplumber vertical_strategy/horizontal_strategy='text' with a low x_tolerance, or send the page image to a vision model. Tested pdfplumber 0.11.10, pymupdf 2.1, Python 3.12.
