frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: What are you working on? (January 2026)

128•david927•6h ago•435 comments

True Scale of Solar System

3•Sarakuzoi•53m ago•0 comments

Why is example.com using Cloudflare

2•1vuio0pswjnm7•2h ago•0 comments

Ask HN: Cheaper Datadog Anyone?

2•kvaranasi_•28m ago•2 comments

Ask HN: Moved to SF to build a startup. What next?

3•kvaranasi_•3h ago•2 comments

Ask HN: What was the best sci-fi book of 2025?

11•Erikun•3h ago•1 comments

Ask HN: What's a standard way for apps to request text completion as a service?

50•nvader•6d ago•24 comments

Ask HN: Is Programming as a Profession Cooked?

11•fnoef•10h ago•25 comments

Ask HN: Senior engineering mngrs: how has AI changed your day-to-day work?

29•kitetm•1d ago•5 comments

Ask HN: When has a "dumb" solution beaten a sophisticated one for you?

6•amadeuswoo•20h ago•12 comments

Aaron Swartz died 13 years ago today

62•vitaelabitur•8h ago•4 comments

Ask HN: Senior software engineers, how do you use Claude Code?

11•allie1•14h ago•12 comments

Ask HN: Best way to find chill job where I can learn and grow as a swe

33•digitdiglet•3d ago•42 comments

Ask HN: Any Microsoft employees/devs here? What's happening to Microsoft?

108•thehamkercat•5d ago•84 comments

Ask HN: Is it time for HN to implement a form of captcha?

89•Rooster61•3d ago•132 comments

Tell HN: Get a dying iPhone 12 mini in 2026

26•remywang•2d ago•22 comments

Are There Any Similar Sites Like Downdetector?

3•nomadfounder•1d ago•0 comments

Ask HN: Would you pay for a privacy-first social platform?

7•sammiej•1d ago•9 comments

Ask HN: Should I learn Docker to deploy my app in VPS?

4•danver0•1d ago•5 comments

macOS Tahoe 26.2 ships with an outdated version of Python 3.9.6

6•Gabrielfair•1d ago•6 comments

Ask HN: What happened to self-hosted models?

3•curiousaboutml•1d ago•12 comments

Implementing NaN Boxing in a Stack-Based VM

5•tracyspacy•4d ago•0 comments

Ask HN: How would you decouple from the US?

34•yawa_me_worht•3d ago•20 comments

Ask HN: How do you do store-and-forward telemetry at the edge?

6•Aydarbek•4d ago•3 comments

Ask HN: Feeling irrelevant in back end. How to pivot to automotive software?

3•culopatin•3d ago•3 comments

Ask HN: How to make working in software fun again?

6•canxerian•2d ago•8 comments

Ask HN: Why isn't AI spawning profitable indie games?

6•eveningsun•2d ago•11 comments

Working on decentralized compute at io.net sharing what we're learning

4•plutodev•2d ago•3 comments

Ask HN: What's your preferred digital payment method?

3•vednig•2d ago•22 comments

Funding Opportunities with Amateur Radio Digital Communications (ARDC)

5•ARDC_73•3d ago•2 comments
Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•7mo 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•7mo 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•7mo ago
give https://pg.llmwhisperer.unstract.com/ a try