frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Stronk.app – open-source gym lifts journal

37•apatheticonion•3h ago•19 comments

Ask HN: What are the best engineering blogs with real-world depth?

359•nishilpatel•17h ago•115 comments

Ask HN: What did you lose forever because you had no backup?

9•postit•5h ago•6 comments

Ask HN: My mother was scammed out of all her savings. What should I do?

126•scapbi•1d ago•58 comments

Ask HN: Can You Patent Prompts?

9•rcarmo•14h ago•16 comments

Why are we accepting silent data corruption in Vector Search? (x86 vs. ARM)

4•varshith17•10h ago•1 comments

Tell HN: HN was down

597•uyzstvqs•6d ago•327 comments

Oberon et al., vs. Rust

15•mikethe•1d ago•28 comments

Ask HN: Those making $500/month on side projects in 2025 – Show and tell

473•cvbox•6d ago•547 comments

I built two dozen single-file HTML tools that run offline and need no back end

14•ajtracysk•1d ago•11 comments

Ask HN: What are your predictions for 2026?

112•mfrw•1w ago•196 comments

Ask HN: What's the most open/hacker friendly Android phone for 2026?

14•recvonline•1d ago•5 comments

Ask HN: What would you do if you didn't work in tech?

59•johnathandos•1d ago•137 comments

Ask HN: Resources to get better at outbound sales?

4•sieep•2d ago•4 comments

Ask HN: Migrating old Substack posts to my own blog, have a question

2•Praddy•1d ago•1 comments

Ask HN: What developer tool do you wish existed in 2026?

16•allenleee•2d ago•16 comments

Ask HN: Does anyone understand how Hacker News works?

169•jannesblobel•6d ago•229 comments

Broadcom Changing Licensing to BSL

10•CubsFan1060•2d ago•4 comments

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

16•mrsurge•5d ago•4 comments

Ask HN: How many email accounts do you have?

9•asim•2d ago•10 comments

Ask HN: Who here is not working on web apps/server code?

84•ex-aws-dude•5d ago•99 comments

Ask HN: Is GitHub becoming more and more unstable?

9•pavish•4d ago•4 comments

Ask HN: How do I bridge the gap between PhD and SWE experiences?

4•ecophyseis•5d ago•2 comments

Ask HN: Why isn't there competition to LinkedIn yet?

54•antfie•1d ago•54 comments

Ask HN: How are most people converting HEIC to jpg?

18•par•4d ago•47 comments

Ask HN: What is still hard about system design with AI?

2•brihati•2d ago•5 comments

Ask HN: How do you deal with large, hard-to-read Excel formulas?

11•jack_ruru•4d ago•10 comments

Cloudflare has been broken for 15 hours

13•Canada•3d ago•13 comments

You've reached the end!

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

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