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: What Are You Working On? (July 2026)

260•david927•1d ago•1009 comments

Ask HN: Any objective research on which languages are best for AI agents?

3•mwigdahl•1h ago•3 comments

Ask HN: How do you keep up with news in a particular sector?

2•doruk101•1h ago•5 comments

Ask HN: Using X vs. LinkedIn?

3•lalithaar•1h ago•0 comments

Ask HN: Can someone build open source Claude tag please?

2•lalithaar•1h ago•1 comments

Ask HN: Should I Promote My SaaS to get first 100 Customers without budget

5•HSK11•1h ago•8 comments

Tell HN: Up/downvotes of comments on HN are silently ignored when using Tor

5•fsflover•1h ago•3 comments

Ask HN: Add flag for AI-generated articles

1051•levkk•1d ago•449 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

21•sspehr•20h ago•79 comments

Anthropic banned my thirteen 20x accounts, what now?

5•flipdin•7h ago•14 comments

I want to build an OTT app. Where should I start?

2•ibuld•7h ago•2 comments

Ask HN: What critical legacy system at work is everyone afraid to touch?

7•jerrycat101•8h ago•2 comments

Ask HN: Does anyone else find GPT-5.6 Sol in Codex slow?

5•linzhangrun•5h ago•1 comments

Ask HN: How do you troubleshoot desktop Linux crashes/freezes?

3•Curiositry•15h ago•4 comments

Ask HN: What hardware hobby would you recommend to a software engineer?

3•merek•11h ago•6 comments

Ask HN: What are your personal websites?

9•basilikum•15h ago•11 comments

Ask HN: How do you use Vim in the era of AI?

48•rstagi•4d ago•95 comments

Ask HN: AI Agent and harness containerization/security recommendations

2•dv35z•15h ago•1 comments

Ask HN: Why does Chrome use 100+ mb of memory per tab?

8•Uptrenda•12h ago•4 comments

Web Client SDK

2•atoapaymentsapp•17h ago•0 comments

What's the first thing you look up when evaluating a company?

2•salleisha•17h ago•1 comments

Claudio? Why we need and open source Claude

3•torrmal•18h ago•1 comments

Ask HN: What makes someone good at using Claude Code?

4•Paarthmj•18h ago•7 comments

Finitude of Knowledge

4•Abhishek000001•19h ago•3 comments

Ask HN: How has the software industry changed for you personally?

7•brindidrip•11h ago•5 comments

Ask HN: How do you see 3D Gaussian Splats could be used in industry?

4•jesseandringa•20h ago•0 comments

Ask HN: How do you use LLMs for private discussions?

11•emerongi•1d ago•14 comments

Ask HN: What is the one YouTube channel you recommend I subscribe to?

7•chirau•12h ago•8 comments

Let's talk about: LinkedIn ghost jobs

14•xvxvx•1d ago•7 comments

Ask HN: Why isn't Google indexing information about the AT Protocol?

49•iameli•2d ago•33 comments