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 is hiring? (September 2026)

228•whoishiring•22h ago•250 comments

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

94•whoishiring•22h ago•308 comments

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

2•juujian•41m ago•0 comments

Noviz AI Agent for ERPNext – A Reasoning Layer for ERPNext

2•tajdink•1h ago•0 comments

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

2•verygoodenginee•2h ago•3 comments

My local model setup on an M4 Pro Mac Mini

3•RanjithKumarRag•1h ago•0 comments

Ask HN: Anyone homeschooling their kids?

10•wbnns•13h ago•11 comments

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

2•benwills•11h ago•1 comments

Ask HN: How do you survive a job you hate which is slowly making you sick?

38•_override•5h ago•62 comments

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

37•jc_811•1d ago•83 comments

Ask HN: Does HN block mobile browsers?

4•pbohun•15h ago•7 comments

Dropbox Data Breach

45•hmate9•1d ago•7 comments

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

12•de6u99er•1d ago•20 comments

Ask HN: Alternative to Proton Mail?

7•OhMeadhbh•21h ago•5 comments

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

10•codexon•1d ago•2 comments

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

31•kradeelav•1d ago•14 comments

Ask HN: What do your job interviews look like?

28•Hixon10•2d ago•9 comments

Asked Reddit support to give me API key so I can delete my data. They refused

15•leoriq•23h ago•16 comments

Tell HN: Remember to Change Your Filters

5•surprisetalk•1d ago•7 comments

Native Apps Why?

7•dmvjs•2d ago•24 comments

Ask HN: Why is Founder Mode not working for Airbnb?

6•jorisboris•2d ago•9 comments

Ask HN: What are your biggest problems and fixes with multisession engineering?

5•top_rooster•2d ago•4 comments

Claude 20x usage is only for the 5 hour window, not for the weekly limit

15•vmg12•1d ago•3 comments

Ask HN: Which self-hosted Docker UIs support rootless mode?

3•vsilent•2d ago•0 comments

Ask HN: Freelancer? Seeking freelancer? (September 2026)

6•jon_north•22h ago•10 comments

Ask HN: What is the next Burning Man in NA?

4•johnnyApplePRNG•2d ago•6 comments

Ask HN: What to do when a vendor doesn't respond to security issues?

3•cudder•2d ago•2 comments

Ask HN: Are Prompt Injections "Malware"?

2•razorbeamz•2d ago•11 comments

You've reached the end!