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)

189•whoishiring•16h ago•198 comments

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

124•whoishiring•16h ago•299 comments

Seattle Just Had an Earthquake

5•tobinfekkes•1h ago•4 comments

Fable 5 is insanely good

5•vuphanse•1h ago•0 comments

Tell HN: Old Reddit now requires login

66•jay_kyburz•10h ago•7 comments

Ask HN: What things might help me to become inference engineer?

3•chalshik•3h ago•3 comments

I'm opening VSCode less and less every day

15•othmanosx•8h ago•6 comments

Are Claude models broken with the Fable 5 update?

6•jackjd•9h ago•2 comments

Ask HN: What do you use computer mode for?

3•aryamaan•5h ago•0 comments

Ask HN: Line by Line Agentic Coding

6•notshore•8h ago•4 comments

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

245•zkldi•1d ago•34 comments

Ask HN: Is anyone running local LLMs in their organization?

3•harry8•6h ago•0 comments

What Can't Fable Do?

3•alimhaq•9h ago•1 comments

Ask HN: Secure wrapper for coding agents?

19•rjzzleep•1d ago•15 comments

Ask HN: Who is this Steve T.?

3•jacobreddy•11h ago•4 comments

Tell HN: I'm not excited for Fable and am disappointed in Karpathy

5•behnamoh•11h ago•7 comments

0/6 major aerospace documentation portals are AI Agent-ready

2•priyanshu-j•12h ago•0 comments

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

4•sspehr•16h ago•5 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•182 comments

Ask HN: Do pull requests have value?

2•_RPM•9h ago•0 comments

Ask HN: What are you building first with Fable?

5•akashwadhwani35•3h ago•2 comments

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

108•gcanyon•5d ago•45 comments

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

7•setnone•1d ago•7 comments

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

67•oscgam1•5d ago•82 comments

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

2•mr_o47•13h ago•3 comments

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

4•jon_north•15h ago•5 comments

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

4•akarshhegde18•1d ago•11 comments

From Slop to Determinism – Shifting the Narrative Space

3•pyeri•1d ago•3 comments

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

41•JohnDSDev•1w ago•59 comments

You've reached the end!