Lightweight PDF parser with layout, tables, formulas and bounding boxes

60 points - today at 4:14 PM

Source

Comments

antonly today at 6:42 PM
I just tried this and the results look very off. I put in the MiniSat[1] Paper, and the result appears catastrophically wrong: https://imgur.com/a/i3RHwcQ

[1]: http://minisat.se/downloads/MiniSat.pdf

phenomen today at 6:04 PM
I currently use https://github.com/firecrawl/anydoc in my PDF pipelines. In most cases it performs well. I'll test your lib to compare.
JaumeGar today at 6:27 PM
Really nice work, thanks for sharing. The table and formula extraction look great.
archeantus today at 5:55 PM
Great work, thanks for sharing.
beatrizalmeidaf today at 4:14 PM
I built this because extracting PDFs into Markdown/JSON often loses reading order, tables, formulas, figures, and their original locations.

The goal is a lightweight document extraction pipeline that preserves document structure and bounding boxes while exporting to Markdown, JSON, Excel and Word.

I'm also working on structure-aware semantic chunking for RAG, so retrieved chunks can retain their section, page and exact visual location in the PDF.

The project is open source and I'd love feedback on the architecture, extraction quality, and useful use cases.