frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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? (June 2026)

109•whoishiring•5h ago•161 comments

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

56•whoishiring•5h ago•178 comments

The AI tool discovery problem

3•meenabhagvat•1h ago•2 comments

Architect MCP and TUI

4•tonycdr•2h ago•0 comments

Ask HN: What Is the State of App Development in 2026?

95•karakoram•2d ago•69 comments

$100 to a Debian Developer who can get Fresh Editor into Trixie

25•jph•1d ago•10 comments

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

10•jon_north•4h ago•15 comments

Recruiters, How do you vet resume in 2026?

13•CoffeeSky•1d ago•6 comments

Ask HN: What are your worst war stories bringing agentic applications into prod

11•yaoke259•1d ago•6 comments

Donating AI credits to open source projects

5•happyPersonR•1d ago•5 comments

Ask HN: Corporate Disconnect Between "Tokenmaxxing" and Token Optimization

5•mc-0•1d ago•5 comments

Tell HN: Meta's AI support feature allows Instagram accounts to be stolen

39•parable•22h ago•12 comments

Ask HN: How you pass legacy to others?

7•jojwong•1d ago•13 comments

I made an free unlimited captcha alternative

7•david3289•1d ago•3 comments

Ask HN: Any advice on how to learn good software architecture practices?

16•jimsojim•3d ago•11 comments

Ask HN: Does Claude Code remove the need for so many front-end frameworks?

12•ex-aws-dude•3d ago•17 comments

Ask HN: What Is an "AI Engineer"?

19•seattle_spring•4d ago•31 comments

Ask HN: Is anyone working at least 4 hours daily on an Apple Vision Pro?

153•widenrun•6d ago•111 comments

Ask HN: If I cancel Codex today whats the next best local inference agent?

11•Bulbasaur2015•3d ago•9 comments

You've reached the end!