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: 3.5 inch diskette read errors, would a period correct drive do better?

26•rietta•1d ago•26 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

243•Animats•5d ago•120 comments

Ask HN: Is ageism in tech still a problem in 2026?

3•leonagano•4h ago•1 comments

Ask HN: Would you hire a new engineer, or get 300k worth of tokens for the team?

3•websap•5h ago•7 comments

Ask HN: Fable hacked my piano, can I release the results?

295•jmpman•3d ago•160 comments

Ask HN: How do you manage skills files?

307•imadtaieber•2d ago•285 comments

Ask HN: Are you leveraging Spec-Driven / Spec-Anchored development?

3•locusofself•6h ago•1 comments

Apparently CodePen 2.0 sends data to their servers as you type

112•maxim-fin•1d ago•59 comments

The universal programming language of LLMs

4•senorqa•8h ago•7 comments

Ask HN: Who is using MCP in production?

198•sukit•5d ago•200 comments

Ask HN: Would you read a statistics textbook?

106•usernametaken29•3d ago•66 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

404•halcdev•5d ago•705 comments

Tell HN: OpenAI keeps stealing my money

10•dingdong2026•12h ago•3 comments

Ask HN: Show your micro-SaaS

22•genekrapivin•2d ago•19 comments

Ask HN: Anyone using dictation with coding agents?

3•TomEleff•15h ago•6 comments

Tell HN: OpenAI brings back 5 hour limit for plus and business standard users

127•spwa4•1d ago•145 comments

Ask HN: Any Software Engineers here who enjoy their AI-native dev workflow?

11•pkos98•2d ago•12 comments

Ask HN: Connecting Kubernetes dependencies to application telemetry

6•chipfixer•2d ago•2 comments

DeepSeek v4.1 Flash is now available for internal beta testing

19•dares2573•22h ago•7 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

24•burnt-resistor•2d ago•6 comments

Ask HN: Best Platforms to Orchestrate Agents

2•venkat971•1d ago•1 comments

Ask HN: (Why) Was the LLM breakthrough useful for images, audio, etc.?

4•rogerrogerr•2d ago•5 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

20•fastest963•5d ago•1 comments

Tell HN: I want to see the same moon as you

16•UnderABlueMoon•4d ago•16 comments

A Harvard PhD Is Designing Schizophrenia Drugs in His Garage with ChatGPT

2•wslh•5h ago•3 comments

Ask HN: How safe are our password managers in face of LLM cyber attacks?

3•muddi900•2d ago•0 comments

Bun rewrite and FLT formalization had nearly identical resource usage

5•Zsfe510asG•1d ago•1 comments

Is OpenAI silently routing GPT‑6 requests to GPT‑4o?

2•skaiuijing•1d ago•3 comments

Ask HN: What are you working on?

8•meerita•2d ago•16 comments

Ask HN: Do People Care About Image Optimisation Anymore?

4•CM30•1d ago•1 comments