frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Where else do you spend time on the internet other than HN?

3•Gecko4072•2h ago•5 comments

Requests for Startups: Energy

2•NarcisMirandes•2h ago•0 comments

Ask HN: Are you still using AI code autocomplete?

3•jawuilp•3h ago•2 comments

Tell HN: Google Search to begin using opaque redirect URLs on search results

4•exploraz•5h ago•2 comments

One MCP directory for all docs.domain.tld (No auth needed)

3•respectattentio•5h ago•0 comments

Ask HN: OpenBSD or FreeBSD?

3•simonebrunozzi•3h ago•3 comments

Ask HN: Will RAM / NVMe / Platter Drives ever come back down in price?

3•krautburglar•4h ago•2 comments

Open source in-browser log sanitizer, feedback required

2•andriimb•8h ago•2 comments

Ask HN: Is what Open Commonplace legal?

2•VishnuShayeq01•8h ago•0 comments

Ask HN: What are you using to access x.com at the moment?

3•throwaw12•9h ago•6 comments

Looking for people to follow designing systems to ship code with AI agents

6•mutahn•10h ago•1 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

29•foota•1d ago•8 comments

Ask HN: Why are Claude models so verbose?

2•JacobWolf•12h ago•7 comments

Ask HN: Opus 5 is unusable for writing, even internal use. Alternatives/fix?

5•m3h•7h ago•1 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

71•kaladan•2d ago•87 comments

Ask HN: What Did Anthropic Bill Me For?

4•OhMeadhbh•1d ago•3 comments

Anyone in Legal Tech Here?

4•bgajjela•20h ago•1 comments

Ask HN: Android OS with Linux level customisation

3•KinetiNode•22h ago•9 comments

Is AI slowing you down?

16•charbz•22h ago•12 comments

Ask HN: What business would you build if you couldn't use the internet?

5•spking•22h ago•9 comments

How I Read Books

12•nomilk•1d ago•14 comments

I'm a CTO. We took PE money 6 months ago. AMA

8•scottndecker•1d ago•13 comments

Talk Like Claude Day

20•KenPainter•2d ago•6 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