frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tell HN: Remember to migrate away from .name domain

149•nikanj•3d ago•90 comments

Ask HN: How can we stop UX people from changing UIs to get promotions?

4•ex-aws-dude•4h ago•0 comments

How do you deal with AI Output of your boss?

6•okr•8h ago•8 comments

Why do computers/phones have a restart option along with the power off option?

6•saonnet•14h ago•7 comments

Talk like Paul Dirac – fewer words is better

4•asen•18h ago•9 comments

Ask HN: Is anyone still running Token Ring or FDDI networks?

11•robotnikman•1d ago•1 comments

Ask HN: How do I stop Gemini Live from asking."Would like to know more about..?"

2•orsenthil•17h ago•5 comments

Ask HN: Thoughts on hiring junior engineers in 2026?

11•abhishekbasu•1d ago•21 comments

Ask HN: Flying Car Practical Tech

5•NarcisMirandes•1d ago•9 comments

More Powerful Than Ever, (can't find work)

8•pieratt•1d ago•15 comments

Emu Concept – Make AI Follows Your Rules. (Feedback Wanted)

4•JariwalaH•1d ago•14 comments

Why is there no AlphaZero for theorem proving?

3•hyperpallium2•1d ago•3 comments

Triplet of 'Ghostly' Galaxies Hints at What Dark Matter Is – and Isn't

4•gumby•15h ago•2 comments

Tell HN: Google Argon on a Pro subscription is worthless

9•bb88•2d ago•9 comments

AI Revolution vs. Computing Revolution

2•nitinagg•1d ago•5 comments

VectorCraft vs. Figma vs. Penpot vs. Adobe Illustrator vs. Wunjo Design?

5•wladradchenko•1d ago•1 comments

Ask HN: Are you hesitant to install vibe-coded apps?

18•ex-aws-dude•3d ago•25 comments

Ask HN: macOS 27.x upgrade without Siri eating disk space?

3•prologic•1d ago•1 comments

Survey: How do you create the video demo for your project or product?

4•loveTech•21h ago•5 comments

Ask HN: Which books did you read at least twice?

8•chessnode•1d ago•20 comments

Ask HN: Has anyone decompiled Claude Code yet?

3•matt3210•2d ago•9 comments

Ask HN: Where has creativity in software gone?

36•piratesAndSons•4d ago•25 comments

Domain Health

9•anjalibery•4d ago•4 comments

Ask HN: Demonstrating Skills When Everything Is a Prompt

7•Brisk4t•3d ago•2 comments

Ask HN: For those who left Big Tech for early-stage startups, do you regret it?

5•Peaceful-Hours•1d ago•2 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