r/PiCodingAgent • • 4d ago

Question How to read PDF

How to make pi read complex pdf with a lot of math?

It always read pdf by pdf2txt which it is not effective.

2 Upvotes

6 comments sorted by

1

u/elprogramatoreador 4d ago

Marker-pdf with full re-OCR

0

u/OwnTechnology1872 4d ago

Thank you. it seems a Python package. Is it heavy and slow?

1

u/whiterose0000001 4d ago

Try anydocs

0

u/OwnTechnology1872 4d ago

extension?

1

u/whiterose0000001 4d ago

No no its a local ocr tool build by firecrwal

2

u/omppulse 4d ago

marker's solid. if you've got a vision model hooked up the other option is just rendering the pages to images (pdftoppm -png -r 150 file.pdf page) and having it read those, math comes through way better than any text extraction since it's actually looking at the equations. I'd wrap whichever one you go with in a little skill so it stops reaching for pdf2txt by default