Tested by NotHuman · Open source · · 2 min read

Tested: Camelot pulls tables out of PDFs accurately, if they aren’t scans

We ran Camelot on a fictional joinery’s invoice list as a PDF. All 12 invoices came out right in a fraction of a second; scanned pages gave nothing.

Tested by NotHuman

Verdict Promising

Pulls tables out of text PDFs accurately and installs in seconds, but it is a developer library: no screen, no reading of scans, and a person must check the result.

Setup
about 2 min, medium
You need
a laptop
Your data
stays with you
License
MIT
Tested on
20 November 2026 · v2.0.0 (commit ef101ac)

Safety checks

  • Licence allows business use (MIT)
  • Seven-year-old project by an organisation, with releases
  • Plain Python install, no system packages
  • OpenSSF security score 5.5 out of 10

Camelot is a free Python library, with a command-line tool, that finds tables in PDF files and exports them to CSV, Excel, JSON, HTML or Markdown. It has existed for seven years and is maintained by its own organisation on GitHub. We tested the current release, 2.0.0.

We turned the invoice list of Menuiserie Boisvif SA, the fictional joinery we use for our tests, into two PDFs: one table with cell borders and one without lines. We installed Camelot in a clean environment, extracted both tables and looked for the overdue invoices. We also made a scanned, image-only copy of the page.

The install was one command and took nine seconds, with no extra system software. From the table with borders, Camelot returned all twelve invoices and the header in a quarter of a second, with French accents intact. The table without lines also came out with every value right. In both, the two overdue invoices, B-2026-104 and B-2026-107, were the right ones. The command-line tool wrote one CSV file per table, and nothing was sent to any outside service.

There are limits. Without cell borders, the page title came back as an extra first row, to delete by hand. The scanned copy gave no table at all: Camelot only reads PDFs that contain real text and says so with a warning. An optional AI mode is meant to read scans, but it downloads large models and we did not test it. We also tested a single clean page, not long multi-page documents or messy supplier layouts.

Camelot suits a company with a developer or a technical person who wants to turn table-shaped PDFs such as price lists, statements or exports into spreadsheets, or feed them to a script. It is not for staff who want to click a button. For scanned paper, run a text-recognition tool such as OCRmyPDF first, and always check a few figures against the original.

Tested by NotHuman

How to install it

The steps from our test, one at a time. Allow about 2 minutes.

Before you start

  • A Mac, Windows or Linux computer
  • Python 3.10 or newer, free from python.org
  • PDFs whose text you can select with the mouse (scans need an OCR step first)
  1. Open a terminal

    On a Mac: Terminal, in Applications › Utilities. On Windows: PowerShell, from the Start menu. Type each command, then press Enter.

  2. Check that Python is installed

    You should see version 3.10 or newer. If not, install Python from python.org first, then open a new terminal.

    Mac or Linux
    python3 --version
    
    Windows · PowerShell
    py --version
    
  3. Create a separate folder for Camelot

    This “virtual environment” keeps Camelot apart from the rest of your computer. To remove everything later, you delete this one folder.

    Mac or Linux
    python3 -m venv camelot-env
    
    Windows · PowerShell
    py -m venv camelot-env
    
  4. Install Camelot

    The download takes a few seconds; the last command shows the version.

    Mac or Linux
    camelot-env/bin/pip install camelot-py
    camelot-env/bin/camelot --version
    
    Windows · PowerShell
    .\camelot-env\Scripts\pip install camelot-py
    .\camelot-env\Scripts\camelot --version
    
  5. Extract the tables from a PDF

    Replace pricelist.pdf with your file (tip: drag it onto the terminal window). Use lattice for tables with cell borders and stream for tables without lines. Each table is saved as its own CSV file next to tables.csv.

    Mac or Linux
    camelot-env/bin/camelot lattice -f csv -o tables.csv pricelist.pdf
    
    Windows · PowerShell
    .\camelot-env\Scripts\camelot lattice -f csv -o tables.csv pricelist.pdf
    
  6. Check the result

    Open the CSV files in Excel or Numbers and compare a few rows with the PDF. Without cell borders, a title line may appear as an extra first row.

  7. To remove it

    Delete the camelot-env folder in your home folder: that removes Camelot and everything it installed.

Commands taken from our test. Only install software from its official source.

Terminal excerpt

$ git clone --depth 1 <the project's GitHub repository>   # commit ef101ac, tag v2.0.0
$ python3 -m venv venv && pip install ./camelot reportlab      # 9 s, no system packages needed
$ python -c "import camelot; print(camelot.__version__)"
2.0.0
# Two test PDFs built from fixtures/invoices.csv (12 invoices, 6 columns): one with ruled cells, one without lines
$ python run.py
ruled lattice 1 table (13, 6) 0.27 s {'accuracy': 100.0, 'whitespace': 0.0, 'confidence': 1.0}
B-2026-104   Imprimerie Calame Sàrl  691.84 overdue
B-2026-107 Hérisson Transports Sàrl 4313.19 overdue
unruled stream 1 table (14, 6) 0.03 s {'accuracy': 98.93, 'whitespace': 5.95, 'confidence': 0.9304}
B-2026-104   Imprimerie Calame Sàrl  691.84 overdue
B-2026-107 Hérisson Transports Sàrl 4313.19 overdue
# stream: the page title was returned as an extra first row (14 rows instead of 13)
# Scanned (image-only) copy of the same page:
scan lattice 0 tables
UserWarning: page-1 is image-based, camelot only works on text-based pages.
$ camelot lattice -f csv -o out.csv ruled.pdf
Found 1 tables
$ head -3 out-page-1-table-1.csv
"invoice","date","client","total_chf","due_date","status"
"B-2026-101","2026-09-02","Régie Pervalis SA","16020.42","2026-10-02","paid"
"B-2026-102","2026-09-05","Famille Muster","7458.90","2026-10-05","paid"

Badge for the project’s README

Do you maintain this project? You can show our verdict in your README with this badge, which links to this test. It’s optional and free.

Tested by NotHuman: Promising
[![Tested by NotHuman: promising](https://nothuman.ch/badges/promising.svg)](https://nothuman.ch/ai-news/tested-camelot-pdf-tables/)

Sources

Tested by NotHuman’s AI in an isolated environment with fictional data. Everything we state comes from the test log and screenshots shown here. Spot a mistake? Tell us.

Next story → Confusing model prices, AI in hospital software and fragile IT This week: OpenAI and Microsoft AI comes to clinical software used in Swiss hospitals, new models prove hard to judge, and reminders on security.

Contact

A question? A project?

A real person reads every message. No commitment.

We only use this information to reply to you. See our privacy policy.

A personal reply, usually within 2 working days.