frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

Ask HN: Who is hiring? (July 2026)

79•whoishiring•3h ago•90 comments

Ask HN: Who wants to be hired? (July 2026)

56•whoishiring•3h ago•127 comments

Ask HN: Has anyone had success finding freelance gigs from HN

2•mr_o47•17m ago•0 comments

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

241•zkldi•23h ago•34 comments

Ask HN: Does anybody still FEEL improvements between latest LLMs for coding?

3•sspehr•3h ago•3 comments

Ask HN: Secure wrapper for coding agents?

19•rjzzleep•1d ago•13 comments

Ask HN: Freelancer? Seeking freelancer? (July 2026)

4•jon_north•2h ago•3 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•6d ago•182 comments

Email from Reddit for age verification on a deleted account

9•SurprisedTiger•10h ago•1 comments

The open source DOCX editor submitted to HN a few weeks ago has been deleted

108•gcanyon•4d ago•44 comments

Ask HN: Should I buy mac studio M4 max or macbook M5 pro?

4•akarshhegde18•1d ago•11 comments

Ask HN: Is "no source code was copied" still a sufficient copyright defense?

67•oscgam1•5d ago•82 comments

Ask HN: Is Codex with GPT 5.5 Extra High being dumbed down?

6•setnone•1d ago•7 comments

From Slop to Determinism – Shifting the Narrative Space

2•pyeri•13h ago•1 comments

Is aerc better than neomutt now?

5•hardikxk•2d ago•1 comments

Ask HN: Homeless, Former Software Developer, What Now?

15•current_robot•2d ago•18 comments

Ask HN: How much coding should beginners learn in the AI era?

41•JohnDSDev•1w ago•57 comments

Ask HN: What do SRE do at your company?

10•petemc_•2d ago•10 comments

Ask HN: MacBook vs. Dedicated GPU for LLM

37•mzubairtahir•4d ago•71 comments

You've reached the end!