frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Who is hiring? (February 2026)

100•whoishiring•1h ago•123 comments

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

17•whoishiring•1h ago•59 comments

Kernighan on Programming

71•chrisjj•1h ago•14 comments

Ask HN: Has anybody moved their local community off of Facebook groups?

13•madsohm•8h ago•6 comments

Google Cloud suspended my account for 2 years, only automated replies

152•andylizf•1d ago•86 comments

Why do people still talk about AGI?

32•cermicelli•14h ago•49 comments

Ask HN: Do you still use physical calculators?

32•speedylight•2d ago•87 comments

Ask HN: What serious task have you accomplished with Moltbot / OpenClaw?

5•lukol•17h ago•4 comments

Ask HN: Junior getting lost

49•TheRegularOne•3d ago•36 comments

Ask HN: Any Successful Co-Ops of Software Engineers

13•rubyn00bie•1d ago•10 comments

Task engine VM – for tasks with executable instructions (progress update)

3•tracyspacy•1d ago•3 comments

Ask HN: Any real OpenClaw (Clawd Bot/Molt Bot) users? What's your experience?

107•cvhc•1d ago•169 comments

Ask HN: Do you also "hoard" notes/links but struggle to turn them into actions?

230•item007•3d ago•211 comments

Ask HN: How do you handle auth when AI dev agents spin up short-lived apps?

2•NBenkovich•1d ago•7 comments

AI has failed to replace a single software application or feature

20•cadabrabra•3d ago•22 comments

A simple HTTPS, HTTP/3, SSL and security headers checker I built with AI

3•dragonman•1d ago•1 comments

Ask HN: How do you reset an AppleID?

13•OhMeadhbh•3d ago•26 comments

Waypoint 1.1, a local-first world model for interactive simulation

13•lcastricato•2d ago•0 comments

G Lang – A lightweight interpreter written in D (2.4MB)

2•pouyathe•3d ago•1 comments

Ask HN: The Next Big OS Leap

4•rafaelmdec•20h ago•25 comments

Ask HN: How do you market a side project?

11•ruairidhwm•3d ago•12 comments

Ask HN: What's your biggest LLM cost multiplier?

7•teilom•2d ago•5 comments

The preposterous notion of AI automating "repetitive" work

11•cadabrabra•3d ago•10 comments

Ask HN: What's the Point Anymore?

67•fnoef•6d ago•82 comments

Ask HN: What recent UX changes make no sense to you?

34•superasn•5d ago•36 comments

Ask HN: How do you force yourself to take breaks while coding?

6•glidea•3d ago•26 comments

Ask HN: How far has "vibe coding" come?

13•pigon1002•4d ago•27 comments

Ask HN: Should a software engineer have research exposure?

4•c_daeda•2d ago•1 comments

How much recurring income do you generate in 2026 and from what?

12•djshah•5d ago•7 comments

Ask HN: Is archive.is currently broken for WSJ links?

8•bigwheels•3d ago•3 comments
Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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