frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Resources to get better at outbound sales?

185•sieep•6d ago•48 comments

Ask HN: What did you read in 2025?

294•kwar13•1d ago•408 comments

Ask HN: What skills do you want to develop or improve in 2026?

243•meridion•2d ago•386 comments

Tell HN: Merry Christmas

1944•basilikum•3d ago•426 comments

Ask HN: How are you sandboxing coding agents?

41•m-hodges•1d ago•29 comments

The Epstein files downloaded today is different compared to before

39•IDKhowTo•12h ago•7 comments

Tell HN: I am afraid AI will take my job at some point

16•funnyfoobar•1d ago•26 comments

Do you know what your dev team shipped last week?

2•akhnid•11h ago•1 comments

Ask HN: What are the best engineering blogs with real-world depth?

458•nishilpatel•4d ago•135 comments

Bloat in software is getting WAAAY out of hand

7•sdrawkcabsti•14h ago•4 comments

Ask HN: What was the hardest bug you tracked down in 2025?

6•varshith17•1d ago•4 comments

Ask HN: Would anyone pay for a social network with no ads or data harvesting?

5•neilfd•18h ago•18 comments

Tell HN: Merry Christmas

92•franze•3d ago•57 comments

Ask HN: Why isn't there competition to LinkedIn yet?

59•antfie•5d ago•57 comments

Postgres for everything, does it work?

7•saisrirampur•1d ago•5 comments

Looking for Decent Conversation?

101•kmstout•3d ago•16 comments

Ask HN: How many HN'ers Celebrate Christmas vs. ?

19•gist•3d ago•35 comments

Ask HN: What is the international distribution/statistics of HN visitors?

62•KellyCriterion•2d ago•27 comments

Stronk.app – open-source gym lifts journal

63•apatheticonion•4d ago•29 comments

Ask HN: Good uses cases for Fabrice's microquickjs

14•fud101•3d ago•5 comments

Ask HN: My mother was scammed out of all her savings. What should I do?

135•scapbi•5d ago•66 comments

Ask HN: What developer tool do you wish existed in 2026?

22•allenleee•6d ago•24 comments

Google Cloud Run cost me $4,676 in 6 weeks with zero traff

49•creativesage•3d ago•33 comments

Ask HN: At 34, can I aspire to being more than a JavaScript widget engineer?

27•yesitcan•3d ago•22 comments

Ask HN: Oberon et al., vs. Rust

17•mikethe•5d ago•30 comments

Ask HN: Is Dart a particularly optimised language for front-end development?

5•theanonymousone•1d ago•8 comments

Are you verifying that products are readable by AI shopping

2•David_0101•1d ago•0 comments

Best practices for long-run LED strip installs (20–50M) to avoid flicker?

3•emmasuntech•2d ago•0 comments

Ask HN: Useful (Non-Coding) Agents?

2•qaboutthat•1d ago•0 comments

Tell HN: Merry Christmas

19•teruakohatu•4d ago•4 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