frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: How do people keep track of organizational knowledge?

15•kadhirvelm•9h ago•20 comments

Ask HN: GitHub CVE Delays?

4•ioseph•5h ago•0 comments

Ask HN: Why AI labs publish different benchmarks?

2•mzubairtahir•1h ago•0 comments

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1310•nprateem•4d ago•754 comments

Ask HN: What's your experience with GPT-Live been like?

5•caveman23•11h ago•6 comments

If HF was breached, should we expect OpenAI to face criminal charges?

5•arm32•3h ago•1 comments

Ask HN: Apple Is Broken?

5•dogomatic•7h ago•3 comments

Ask HN: Post active but comments got flagged

2•spirosoik•7h ago•1 comments

Thanks HN for 15 years of support and helping me find my life's work

826•nicholasjbs•4d ago•107 comments

Ask HN: Personal Goal Setting Method (Jim Rohn)

2•urnicus•9h ago•0 comments

We're (Skyfall AI) acquiring SaaS startups and running them with AI as CEO

3•anousha_606•9h ago•0 comments

Ask HN: SOFTWARE IS PROVIDED WITHOUT WARRANTY – does this do anything?

3•fkdk•10h ago•4 comments

Ask HN: What Are You Working On? (July 2026)

290•david927•1w ago•1137 comments

Halo v2.7: Unified MCP Tool Engine for AI Security

2•automajicly•10h ago•0 comments

Ask HN: Claude Code or Codex?

13•czeizel•20h ago•28 comments

Ask HN: Why 1Password extension pushing debug logs in the browser console?

2•pixelpanic360•12h ago•2 comments

Ask HN: Claude Blind Test Results: Bug or Feature?

2•Leewen•13h ago•0 comments

Ask HN: Are LLMs replacing open-source ecosystems for personal project codes?

2•malteg•14h ago•0 comments

Ask HN: I am building a app to deep search bookmarks from browser, X etc.

5•shafkathullah•20h ago•4 comments

Ask HN: Which model do you use with Pi coding agent?

5•theaniketmaurya•15h ago•3 comments

Ask HN: Is there a Moore's Law equivalent for compute/energy use?

7•cwmoore•1d ago•1 comments

You've reached the end!

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