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: When will ChatGPT Voice be able to control my phone?

2•spapas82•1h ago•3 comments

Ask HN: Anyone still do work on Intel Macs?

18•senor_digimon•10h ago•14 comments

What if we learned languages like we acquired our first?

4•Salim_wariz•2h ago•4 comments

Created a network that combines Hacker News and geniuses at one place

2•silisleek•4h ago•3 comments

Ask HN: Am I the only one getting so many cursor ads?

3•alexander2002•1h ago•2 comments

Ask HN: I still don't understand why AI agents need "skills"

12•skeptic_ai•10h ago•12 comments

A daily estimation game where the crowd's answer fights an AI

2•holdthelineworl•1h ago•0 comments

Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

18•pera•15h ago•12 comments

Ask HN: How are you using AI to learn?

6•mfalcon•13h ago•12 comments

Ask HN: How do you make people notice the cameras watching them?

3•bogomil•3h ago•0 comments

AI will always find a difference

2•ghassenfaidi•10h ago•0 comments

Ask HN: Best Blogging Platform?

4•asxndu•14h ago•5 comments

Which web browser has no AI?

10•lilerjee•15h ago•11 comments

Tell HN: HackerOne Announces Mandatory identity verification

17•0xmattf•1d ago•1 comments

Ask HN: Should organizations be allowed to have all types of personl data(X.com)

4•dfps•16h ago•0 comments

Ask HN: When did we go from agentic loops to graphs?

4•grandimam•17h ago•2 comments

Ask HN: What did you learn last month? (July 2026)

14•bhu1st•1d ago•11 comments

Ask HN: How did your boss's behavior change with the rise of AI?

8•aredirect•1d ago•9 comments

Everything that happens in a US airport is under duress

16•dfps•1d ago•22 comments

Strategic Oil Reserves Down to a Record Low Two-Week Supply

19•megamike•2d ago•20 comments

Wyro – Draw a backend on a canvas, export TypeScript with no lock-in

5•Paaul01•21h ago•1 comments

Ask HN: When a post of yours does well, do you know why?

5•john_builds•1d ago•5 comments

OpenAI Usage Reset 4th time in 7d

2•bavovna•1d ago•4 comments

Ask HN: What's the Point of Your Startup?

9•sawyers•1d ago•18 comments

What's Happening with IT Hiring?

3•hannibalevit•1d ago•10 comments

Tell HN: System76 has critical firmware issues unresolved for over 3 years

6•jaime-ez•1d ago•3 comments

Random Thoughts of Lineage and Death

3•kooi•1d ago•0 comments

You've reached the end!