frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•1y 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•1y 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•1y ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: Who wants to be hired? (September 2026)

103•whoishiring•1d ago•378 comments

Ask HN: Who is hiring? (September 2026)

236•whoishiring•1d ago•283 comments

ChatGPT Linux GUI version updates redownload all files, require 1.4GB download

7•juujian•14h ago•0 comments

Resources to Get Good at Soldering?

5•tosmatos•17h ago•4 comments

Kimi K3 and GLM-5.3 are better than Gemini 3.8 Flash

7•theHocineSaad•10h ago•2 comments

Ask HN: Where do you get your AI (technology) news?

4•BtM909•14h ago•1 comments

Ask HN: How to ask questions in Ask HN

3•samikama•11h ago•10 comments

Ask HN: Would you be interested in using a VoIP system that has an operator?

2•left-struck•11h ago•6 comments

Knowledge Graph Engine for Codebases

3•Shourya_55•13h ago•9 comments

Noviz AI Agent for ERPNext – A Reasoning Layer for ERPNext

2•tajdink•15h ago•0 comments

Whose interview process has caught up to the new way of working?

3•verygoodenginee•16h ago•6 comments

Ask HN: What would happen if your company stopped using all AI tomorrow?

38•jc_811•2d ago•84 comments

Ask HN: Anyone homeschooling their kids?

12•wbnns•1d ago•23 comments

Dropbox Data Breach

47•hmate9•2d ago•7 comments

Were Claude's Weekly Limits Cut in Half? (and obscured by another 50% "deal"?)

2•benwills•1d ago•3 comments

Ask HN: Does HN block mobile browsers?

4•pbohun•1d ago•6 comments

Is it just me, or has Claude Opus gotten worse recently?

12•de6u99er•1d ago•20 comments

Claude Code now appends a link to a Claude session in every commit

10•codexon•2d ago•2 comments

Old.reddit.com no longer works for logged out users

33•kradeelav•2d ago•15 comments

Why did Microsoft acquire LinkedIn?

6•ninju•1d ago•6 comments

Ask HN: What do your job interviews look like?

29•Hixon10•3d ago•11 comments

My local model setup on an M4 Pro Mac Mini

4•RanjithKumarRag•15h ago•1 comments

Ask HN: Alternative to Proton Mail?

7•OhMeadhbh•1d ago•7 comments

You've reached the end!