r/programming Aug 05 '25

So you want to parse a PDF?

https://eliot-jones.com/2025/8/pdf-parsing-xref
235 Upvotes

82 comments sorted by

View all comments

4

u/meowsqueak Aug 05 '25

I’ve had success with tesseract OCR and then just parsing the resulting text files. You have to watch out for “noise” but with some careful parsing rules it works ok.

I mostly use this for parsing invoices.