frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Agentic Permutation of Testing Paths In A System

4•davidajackson•7h ago•0 comments

Is the pitch deck culture making founders worse at building businesses?

11•chinhqtran•16h ago•2 comments

Ask HN: Any interesting niche hobbies?

478•e-topy•6d ago•722 comments

Ask HN: Best books on building a programming language

14•ezzato•20h ago•7 comments

Ask HN: Hiring in the age of AI-assisted coding: what works?

26•nitramm•1d ago•14 comments

Ask HN: What are you building that's not AI related?

141•meander_water•2d ago•190 comments

Tor Browser on Android leaks IP in desktop mode

13•shchess•12h ago•1 comments

Do founders' political views affect how you see a product?

3•rishikeshs•17h ago•3 comments

Ask HN: Why Databases Instead of Filesystem?

12•uticus•1d ago•19 comments

My AI workflow evolved from prompts to a near-autonomous workflow

4•hoangnnguyen•20h ago•8 comments

Any Open Source projects in need of documentation writer?

21•tree666•2d ago•13 comments

I collected startup ideas. It changed how I think about ideas completely

8•vibecoder21•21h ago•11 comments

Ask HN: How do you handle marketing as a solo technical founder?

144•lazarkap•5d ago•106 comments

Is VC the new PMF strategy?

3•networkOne•1d ago•5 comments

Open Source card game cuttle.cards has its world championship Saturday at 1pm ET

4•aleph_one•1d ago•0 comments

Ask HN: Should AI credits be refunded on mistakes?

19•ed_elliott_asc•3d ago•19 comments

Zooming UIs in 2026: Prezi, impress.js, and why I built something different

100•tinchox6•5d ago•44 comments

Hybrid Attention

40•JohannaAlmeida•4d ago•9 comments

Ask HN: How do you manage your digital legacy for after you die?

15•orbanlevi•3d ago•15 comments

Ask HN: Are you encountering AI-related questions in the hiring market?

7•somthingwrong•1d ago•2 comments

Ask HN: Local-first meetings recorder and transcriber?

6•dandaka•2d ago•1 comments

Yuku – A fast, spec-compliant JavaScript parser written in Zig

6•arshadyaseen•2d ago•0 comments

Ask HN: What would you do with an AI model capable of continuous learning?

4•jballanc•2d ago•6 comments

IMDB created my account for merely visiting the site

12•astr0n0m3r•2d ago•3 comments

You've reached the end!

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•10mo ago
I've got very used to using the "big" LLMs for analysing PDFs

Now llama.cpp has vision support; I tried out PDFs with it locally (via LM Studio) but the results weren't as good as I hoped for. One time it insisted it couldn't do "OCR", but gave me an example of what the data _could_ look like - which was the data.

The other major problem is sometimes PDFs are actually made up of images; and it got super confused on those as well.

Given this is so new I'm struggling to find any tools which make this easier.

Comments

raymond_goo•10mo ago
Try something like this

  !pip install pytesseract pdf2image pillow
  !apt install poppler-utils
  #!apt install tesseract-ocr
  from pdf2image import convert_from_path
  import pytesseract

  pages = convert_from_path('k.pdf', dpi=300)

  all_text = ""
  for page_num, img in enumerate(pages, start=1):
      text = pytesseract.image_to_string(img)
      all_text += f"\n--- Page {page_num} ---\n{text}"

  print(all_text)
constantinum•10mo ago
give https://pg.llmwhisperer.unstract.com/ a try