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

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

127•yehiaabdelm•18h ago•152 comments

AI Is Boring

5•sverp•4h ago•2 comments

SponsorBlock Critical Security Vulnerabilities

3•IDIRIS•4h ago•2 comments

Tell HN: Fewer PRs done with proper prompting, review, and refinement wins

6•tomerbd•5h ago•3 comments

Cadreen – memory, governance, self-healing, and execution as one system

5•ope_john•3h ago•0 comments

How many failed startups have you launched?

17•steelebillings•9h ago•10 comments

Ask HN: Since when does Craigslist's front page have emojis?

38•argee•3d ago•33 comments

Ask HN: Who is hiring? (July 2026)

240•whoishiring•2d ago•296 comments

Well it's been 3 years of unemployment and $250k in debt

5•buffer_overlord•7h ago•2 comments

Ask HN: What did you fail at and what did you learn from it?

4•basilikum•3h ago•0 comments

An AI Koan

2•rcanand2025•5h ago•0 comments

Claude Fable is useless for bioinformaticians

4•iqbal1980•5h ago•4 comments

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

145•whoishiring•2d ago•429 comments

Ask HN: Why are so many "AI evangelists" posting such insufferable content?

55•seattle_spring•1d ago•32 comments

How do you test institutional (or algo) trades under real market conditions?

2•TradingReality•7h ago•0 comments

Ask HN: Procrastination with AI?

3•caprock•7h ago•1 comments

Ask HN: ChatGPT Go Plan

2•czeizel•4h ago•1 comments

Tell HN: Old Reddit now requires login

84•jay_kyburz•2d ago•17 comments

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

246•zkldi•3d ago•34 comments

Ask HN: Are any startups hiring front-end developers, or are they just using AI?

3•Kathan2651•5h ago•2 comments

Ask HN: Once you make your money from vibe coding innumerable products, then?

3•keepamovin•22h ago•14 comments

Ask HN: How do you get your open-source product good traction?

5•akarshhegde18•22h ago•3 comments

Seattle Just Had an Earthquake

12•tobinfekkes•1d ago•8 comments

Ask HN: How to Delete the HN Account?

2•_exvi•7h ago•4 comments

Burned out, how do I get out of the rut?

7•brandgefahr•1d ago•20 comments

I'm opening VSCode less and less every day

20•othmanosx•2d ago•20 comments

AskHN: Using 'claude -p' for running Mr.Jassy - AWS butler agent

2•anoop_kumar•20h ago•0 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

6•tracyspacy•1d ago•2 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•3d ago•19 comments

Reducing AI costs with smart pricing

2•millereffect•21h ago•0 comments