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)

221•whoishiring•23h ago•229 comments

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

135•whoishiring•23h ago•346 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

3•tracyspacy•38m ago•0 comments

Ask HN: Why aren't companies hoarding AI talent?

2•playorizaya•1h ago•2 comments

Ask HN: Who is quitting? (July 2026)

139•ethanwillis•2h ago•105 comments

Liberty and Absurdity in 2026

2•dranimalz•2h ago•9 comments

Seattle Just Had an Earthquake

11•tobinfekkes•7h ago•6 comments

Tell HN: Old Reddit now requires login

76•jay_kyburz•17h ago•12 comments

Fable 5 is insanely good

9•vuphanse•7h ago•6 comments

I'm opening VSCode less and less every day

18•othmanosx•15h ago•12 comments

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

3•chalshik•10h ago•3 comments

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

245•zkldi•1d ago•34 comments

Are Claude models broken with the Fable 5 update?

6•jackjd•15h ago•2 comments

Fable 5 Is Downgraded

5•RIshabh235•3h ago•7 comments

Ask HN: Am I the only who misses Nights and Weekends?

2•dhruv3006•3h ago•3 comments

Ask HN: Line by Line Agentic Coding

6•notshore•15h ago•4 comments

Ask HN: What do you use computer mode for?

4•aryamaan•11h ago•0 comments

Ask HN: Secure wrapper for coding agents?

19•rjzzleep•2d ago•18 comments

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

4•harry8•12h ago•0 comments

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

6•behnamoh•18h ago•8 comments

What Can't Fable Do?

3•alimhaq•15h ago•2 comments

Ask HN: Who is this Steve T.?

3•jacobreddy•17h ago•4 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•183 comments

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

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

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

4•sspehr•22h ago•6 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 "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?

7•setnone•1d ago•9 comments

Ask HN: Do pull requests have value?

3•_RPM•16h ago•4 comments

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

41•JohnDSDev•1w ago•59 comments