frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: If AI tools are so good, why isn't your bug backlog empty?

82•ex-aws-dude•1d ago•103 comments

Ask HN: Are the more software malfunctions now than before?

10•sirnicolaz•16h ago•5 comments

Ask HN: Syncthing

7•bikvfeee•10h ago•5 comments

Ask HN: What was your weirdest or funniest job rejection?

6•cristaloleg•10h ago•8 comments

Ask HN: Are iPhone Duo Customers Happy?

16•rogerdickey•22h ago•15 comments

Ask HN: What do you think is going on with that many outages coming in a row?

8•vld_chk•18h ago•9 comments

Ask HN: Where are you on the spectrum of AI/LLM adoption?

3•joddystreet•13h ago•5 comments

Ask HN: What are you working on? (November 2026)

305•david927•1w ago•1105 comments

Claude Is Always Right

6•KenPainter•17h ago•7 comments

Tell HN: HN is being scraped for emails to scam

122•eks391•1d ago•42 comments

Ask HN: What does building hardware with AI look like?

9•mjs06•2d ago•3 comments

Is the Economy Over-Indexed to Software?

4•nizsle•23h ago•6 comments

AI is killing cheap VPS servers/manageable pricing

13•SudoSH•14h ago•14 comments

Ask HN: Most compelling early stage fund pitches?

5•bix6•1d ago•5 comments

ChatGPT Desktop forwards your SSH agent to remote machines

222•DenGorbachev•1w ago•80 comments

Ask HN: What is a better name for Claude Code?

2•nstj•1d ago•2 comments

Tell HN: Google Search to start locking down search behind a login wall

47•exploraz•3d ago•30 comments

Looking for a remote CTO for my micro SaaS ($600K ARR, $250k Profit)

2•smurf9852•1d ago•1 comments

Ask HN: What is the state of self-hosting email in 2026?

48•0o777•3d ago•36 comments

Tell HN: Opus 5.5 is no more nerfed

3•rzk•1d ago•1 comments

Ask HN: Do you still enjoy coding in C++?

67•hasley•1w ago•92 comments

Vercel should fork and maintain Deno

16•gfalcao•3d ago•14 comments

Tell HN: Cloudflare's abuse report form is a blank page

18•basilikum•3d ago•7 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