frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

Learn by Building

6•csacademy•4h ago•2 comments

Ask HN: What Are You Working On? (July 2026)

280•david927•3d ago•1092 comments

Ask HN: Are we there yet? Can I create a human analogue using AI?

2•JoeAltmaier•3h ago•2 comments

Ask HN: How do you manage too many open tabs?

6•NarcisMirandes•5h ago•20 comments

Ask HN: Best meeting transcription daemon for macOS?

3•tomelliot•4h ago•1 comments

Ask HN: Is it just me, or is software buggier across the board?

123•kadhirvelm•1d ago•104 comments

Ask HN: As LLMs progress, how do you stay sharp and productive?

7•spiresofagartha•6h ago•6 comments

Ask HN: Assistive Tech Ideas for Dementia

3•thanksd•6h ago•1 comments

Help me be accountable with my time

4•atomiomi•8h ago•10 comments

Ask HN: How about a "Merge Stories" feature?

2•RetroTechie•8h ago•2 comments

Ask HN: What are you using for authn/authz and payments?

3•jftuga•8h ago•4 comments

Ask HN: Add flag for AI-generated articles

1083•levkk•3d ago•457 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

10•Gold-Ask-lx•1d ago•14 comments

Thinking: Alternate Distribution for Filmmakers

2•phaedrus044•11h ago•0 comments

I'd prefer to avoid AI comments on Reddit and HN

4•alance•5h ago•1 comments

I built a tool to get comments in CSV format from YouTube videos

2•cristyg0101•14h ago•2 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

28•sspehr•3d ago•93 comments

Ask HN: Anyone working for Reddit?

3•markus_zhang•7h ago•2 comments

Ask HN: Are there any hedge funds incorporating sports bets in their portfolios?

2•JumpinJack_Cash•6h ago•2 comments

Tell HN: Fable Credits Are 150x More Expensive

9•yesitcan•1d ago•6 comments

Ask HN: How companies are protecting Claude Code from reading IP and PII data

1•pradeep1177•7m ago•1 comments

You've reached the end!