frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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

X is selling existing users' handles

179•hac•18h ago•86 comments

Claude 4.6 Opus can recite Linux's list.h

14•itzmetanjim•4h ago•0 comments

Tell HN: Apple development certificate server seems down?

108•strongpigeon•1d ago•39 comments

LazyFire – a lazygit-style terminal UI for Firebase Firestore

3•egosurffing•4h ago•1 comments

Ask HN: What Are You Working On? (March 2026)

286•david927•3d ago•1104 comments

AI is supercharging fake work

3•rxm233•6h ago•0 comments

Ask HN: Is Claude down again?

85•coderbants•1d ago•71 comments

Ask HN: How are people doing AI evals these days?

30•yelmahallawy•2d ago•37 comments

Ask HN: Remember Fidonet?

119•ukkare•2d ago•68 comments

Ask HN: How to be alone?

680•sillysaurusx•4d ago•557 comments

Ask HN: Please restrict new accounts from posting

712•Oras•3d ago•506 comments

Ask HN: Most beautiful personal blog UI you have ever seen?

146•ms7892•3d ago•54 comments

Ask HN: How do we build a new Human First online community in the LLM age?

7•bluefirebrand•15h ago•14 comments

Ask HN: What are you using to mitigate prompt injection?

6•ramoz•16h ago•3 comments

Tell HN: I'm 60 years old. Claude Code has re-ignited a passion

1071•shannoncc•5d ago•978 comments

Ask HN: Can I repurpose a Bluetooth voice remote as input device for a PC?

15•albert_e•4d ago•20 comments

Ask HN: What on this "List of Unsolved Problems in Physics" Has Your Attention?

3•ghastmaster•13h ago•1 comments

Maybe we can keep on coding? pseudo code project

8•EmptyDrum•1d ago•13 comments

IdeaRank – Startup Analysis Engine

2•TMDev•1d ago•0 comments

Ask HN: How do you review gen-AI created code?

6•captainkrtek•1d ago•10 comments

Ask HN: How are people forecasting AI API costs for agent workflows?

5•Barathkanna•1d ago•19 comments

Happy Birthday YC/HN

6•ellis0n•14h ago•4 comments

Ask HN: Is GitHub getting less reliable, or is it just me?

13•_pdp_•2d ago•9 comments

Why is GPT-5.4 obsessed with Goblins?

16•pants2•2d ago•11 comments

Tell HN: Vertical tabs has arrived (behind a flag) in Chrome stable

6•crummy•1d ago•4 comments

Ask HN: Is Starlink still being jammed in Iran?

3•Jblx2•1d ago•1 comments

Ask HN: How to "make it" as a newlygrad/junior?

4•kartoffelsaft•1d ago•12 comments

Ask HN: Does automatic multilingual support make sense for a launch platform?

2•LeanVibe•1d ago•4 comments

Unlocked SaaS, file source as truth?

2•abmmgb•1d ago•1 comments

Ask HN: Finding a purpose after tech layoffs

8•fud101•1d ago•8 comments