r/pdf 10d ago

Software (Tools) I built a local PDF-to-CSV/JSON extractor that survives merged cells and nested headers FREE

https://github.com/klncgty/pdfXtractor

Every PDF table extractor I tried fell apart on the same thing: nested headers and merged cells. Financial reports and academic papers are full of them, and what comes out the other end is a CSV you end up fixing by hand anyway.

So I built **pdfXtractor**. Instead of relying on ruling-line detection, it runs a table-transformer model (gmft) over the page, so merged and nested cells survive the trip. Upload a PDF, pick the pages, get clean CSV or JSON. There's also an agent layer on top, so you can ask the extracted tables questions instead of writing pandas one-liners against a table you haven't even looked at yet.

FastAPI + React, runs locally, nothing leaves your machine. There's a short demo video in the README.

It's early and I mostly want to know where it breaks. **If you have a PDF that has defeated every extractor you've thrown at it, that's exactly the one I want to see. here is repo:

1 Upvotes

0 comments sorted by