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: What are you working on? (September 2026)

201•david927•18h ago•604 comments

Ask HN: How much correlation should a privacy system preserve?

2•Securelytixdev•1h ago•0 comments

Ask HN: Would a startup for young creatives who reject AI be feasible?

9•mondobe•12h ago•17 comments

System 3 Thinking

2•rexossbear•10h ago•0 comments

Ask HN: What are some privacy/security tools you wish exist, but don't yet?

5•ToriTech•11h ago•7 comments

Ask HN: Do You Like Skiing?

2•roschdal•50m ago•2 comments

AI Boom / Bust – Boom Boom Pow

5•wwolfson97•11h ago•2 comments

Ask HN: How is AI actively a threat to humanity if it's only online?

5•CM30•12h ago•11 comments

Ask HN: Should we start airgapping our personal devices?

7•emerongi•1d ago•6 comments

Ask HN: Multi-agent workflows in production; Where people using 1000s of agents?

2•ramstar3000•13h ago•4 comments

Ask HN: What default model do you use and why?

60•stikit•1d ago•101 comments

Ask HN: Is there an emerging pattern for NEGATIVESKILLS.md files?

3•mehmetoguzderin•14h ago•2 comments

DietPi released a new version v10.7

3•stephanstsdietp•23h ago•0 comments

Ask HN: Career paths to consider if I am better at supporting than creating?

28•_override•1d ago•28 comments

Ask HN: What would it look like if AI agents "took over the internet"?

4•scripper1•18h ago•11 comments

Ask HN: Why haven't people vibe coded popular 80s word processors as TUI apps?

5•amichail•21h ago•3 comments

Ask HN: Did Google kill its enterprise workhorse model?

26•waldrews•2d ago•16 comments

Tell HN: OpenAI keeps re-enabling the 'allow training' setting

482•jacquesm•3d ago•188 comments

Ask HN: Can we please limit the AI news flood?

852•cromka•2d ago•392 comments

Reddit Now Blocking Firefox for Android with uBlock Origin?

25•chucksmash•1d ago•6 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

8•funkaster•2d ago•12 comments

OpenAI changed Navier-Stokes press release and Lean4 code on GH

9•rawland•2d ago•2 comments

Tell HN: Claude Code appends new commit signature even if older settings is off

7•ctxc•1d ago•1 comments

Ask HN: For Enterprise coding agents, what's your company doing to control cost?

6•m0rde•1d ago•10 comments

Novgraph: Persistent Knowledge Graph for Codebases

3•Shourya_55•1d ago•2 comments

Ask HN: What is Y Combinator's position on Flock's standing today?

16•chirau•20h ago•21 comments

Ask HN: How are much smarter AI models made?

11•superasn•2d ago•5 comments

GoatCode – open-source terminal AI agent with provider failover

3•Arhan-w•2d ago•2 comments

You've reached the end!