frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: What are your predictions for 2026?

80•mfrw•2d ago•144 comments

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

422•cvbox•1d ago•491 comments

Tell HN: HN was down

595•uyzstvqs•1d ago•326 comments

Ask HN: What Are You Working On? (December 2025)

437•david927•4d ago•1439 comments

Ask HN: How do you deal with large, hard-to-read Excel formulas?

4•jack_ruru•9h ago•8 comments

Ask HN: Does anyone understand how Hacker News works?

155•jannesblobel•1d ago•210 comments

Ask HN: If one day AI brain chips become a thing, would you get it?

5•keepamovin•6h ago•20 comments

Tell HN: Cloudflare Down Again?

6•valtlfelipe•2h ago•6 comments

Tell HN: AI coding is sexy, but accounting is the real low-hanging target

64•bmadduma•1w ago•55 comments

Ask HN: How do teams remember why infrastructure decisions were made?

5•curious_sre•11h ago•5 comments

Ask HN: Who here is not working on web apps/server code?

11•ex-aws-dude•18h ago•10 comments

Ask HN: Is anyone using LLM based document processing in production?

7•asdev•15h ago•6 comments

Ask HN: Is starting a personal blog still worth it in the age of AI?

63•nazarh•4d ago•75 comments

Computer animator and Amiga fanatic Dick van Dyke turns 100

281•ggm•6d ago•93 comments

Ask HN: Is building a calm, non-gamified learning app a mistake?

86•hussein-khalil•3d ago•122 comments

Ask HN: Should I start a software foundation (goal: help emergency services)?

11•strgcmc•1d ago•0 comments

Is analytics a necessary evil rather than a real value driver?

6•tiazm•19h ago•6 comments

Ask HN: How to fight back against Lovable, Replit, etc. in enterprise products

3•bears123•20h ago•2 comments

GitHub Actions Degraded

3•1qaboutecs•20h ago•0 comments

Tell HN: iOS 18.7.3 Update Hidden

5•alemanek•9h ago•2 comments

Ask HN: Is RSS Still Alive?

9•militanz•1d ago•12 comments

Ask HN: Should I Open Source Every Product I Build as an Indie Developer?

6•tomfox2•21h ago•11 comments

Ask HN: If you had to get a non-tech masters degree, what would you go for?

2•highwayman47•21h ago•6 comments

Ask HN: Etiquette giving feedback on mostly AI-generated PRs from co-workers

4•chfritz•1d ago•4 comments

Ask HN: Why do official-looking emails cause anxiety before I read them?

4•BianDan•23h ago•4 comments

Ask HN: Decentralized Auth for Information Exchange?

2•vxsz•1d ago•3 comments

Ask HN: How can I get better at using AI for programming?

467•lemonlime227•5d ago•466 comments

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

2•mrsurge•1d ago•0 comments

Breaking Changes in Python-3.14

6•wef•15h ago•6 comments

Ask HN: How are you vibe coding in an established code base?

11•adam_gyroscope•2d ago•7 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