frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

156•whoishiring•3d ago•480 comments

DeepSeek announced to raise its API price tremendously

24•alexwwang•1d ago•17 comments

Laguna S 2.1:118B-a9B better than Qwen3.5:122B-a10B? So far, yes

2•spottedmarley•8h ago•0 comments

Anybody tried Laguna S 2.1 (by Poolside)?

6•spottedmarley•10h ago•2 comments

Ask HN: Who is hiring? (August 2026)

225•whoishiring•3d ago•285 comments

Poker and Liar's Dice over Bluetooth Low Energy

3•yincrash•11h ago•1 comments

Ask GitHub SRE: How serious is the situation there?

20•laxk•9h ago•5 comments

US and China race to be first to build Skynet. Either way we're F'ed

16•spottedmarley•15h ago•10 comments

Ask HN: Did GitHub remove the stargazers list?

23•reconnecting•1d ago•1 comments

Read HN twice a day for the last decade. Here's my list of S-Tier HN links

82•vivzkestrel•1d ago•14 comments

Empower the people not the AI – self containing OS

8•OnemanBSD•1d ago•0 comments

Ask HN: Dear Anthropic, can we please have thought traces back?

10•exabrial•2d ago•7 comments

Ask HN: Show your micro-SaaS / MRR updates (August 2026)

10•genekrapivin•1d ago•9 comments

Ask HN: What would make you list your AI product on a new marketplace?

4•Achrima•1d ago•3 comments

Ask HN: Anyone interested in building a harness-only benchmark?

5•GodelNumbering•1d ago•5 comments

You've reached the end!

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