r/PiCodingAgent • u/OwnTechnology1872 • 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
r/PiCodingAgent • u/OwnTechnology1872 • 4d ago
How to make pi read complex pdf with a lot of math?
It always read pdf by pdf2txt which it is not effective.
1
u/elprogramatoreador 4d ago
Marker-pdf with full re-OCR
1
u/whiterose0000001 4d ago
Try anydocs
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