frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

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

Tell HN: Merry Christmas

1208•basilikum•10h ago•299 comments

Ask HN: HarmonyOS Open Source Development

2•rumpelstiel•2h ago•0 comments

Ask HN: Good uses cases for Fabrice's microquickjs

9•fud101•7h ago•2 comments

Ask HN: At 34, can I aspire to being more than a JavaScript widget engineer?

10•yesitcan•5h ago•4 comments

Looking for Decent Conversation?

88•kmstout•14h ago•13 comments

Tell HN: Merry Christmas

85•franze•22h ago•53 comments

Google Cloud Run cost me $4,676 in 6 weeks with zero traff

35•creativesage•15h ago•24 comments

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

428•nishilpatel•2d ago•127 comments

Ask HN: How many HN'ers Celebrate Christmas vs. ?

11•gist•9h ago•10 comments

Stronk.app – open-source gym lifts journal

59•apatheticonion•1d ago•29 comments

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

55•antfie•2d ago•56 comments

Ask HN: Why isn't everyone talking about (and using) Cerebras?

5•ray__•11h ago•0 comments

Could the optimal vibe coder be fundamentally different from the optimal SWE?

3•inshard•12h ago•2 comments

Ask HN: Why is Hacker News red? Christmas?

11•onesandofgrain•9h ago•11 comments

Tell HN: Merry Christmas

17•teruakohatu•1d ago•3 comments

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

129•scapbi•2d ago•66 comments

Ask HN: Oberon et al., vs. Rust

16•mikethe•2d ago•29 comments

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

19•allenleee•3d ago•18 comments

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

15•postit•1d ago•15 comments

GitHub is returning Gateway Time-outs

9•pera•19h ago•6 comments

Ask HN: Which is the best sync engine?

5•olivieropinotti•21h ago•2 comments

Cloudflare Stream + Backblaze vs. GCP for Short Form Video?

3•slroger•22h ago•5 comments

Ask HN: Do you have an exit plan for Slack?

7•gtirloni•15h ago•4 comments

Ask HN: Can you patent prompts?

12•rcarmo•1d ago•17 comments

Ask HN: Anybody here ever write apps for Windows Phone?

3•ge96•1d ago•2 comments

SSH Tiny.christmas

9•cyanbane•15h ago•1 comments

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

17•ajtracysk•2d ago•13 comments

Ask HN: How do you use the "waiting time" while Claude (other LLMs) is working?

6•pedrodelfino•17h ago•5 comments

Ask HN: Is formal verification of practical use in real world projects?

5•akkad33•12h ago•2 comments

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

15•recvonline•2d ago•6 comments