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)

262•david927•2d ago•1031 comments

Ask HN: A DC Powered Home?

2•dhosek•2h ago•4 comments

Ask HN: Add flag for AI-generated articles

1066•levkk•1d ago•452 comments

Ask HN: Advice for first-year CS students?

6•jassembk•4h ago•9 comments

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

25•sspehr•1d ago•83 comments

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

5•mwigdahl•8h ago•6 comments

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

2•doruk101•8h ago•9 comments

Ask HN: Using X vs. LinkedIn?

4•lalithaar•8h ago•1 comments

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

2•lalithaar•8h ago•1 comments

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

6•HSK11•9h ago•15 comments

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

6•fsflover•9h ago•9 comments

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

3•ibuld•15h ago•2 comments

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

10•jerrycat101•16h ago•2 comments

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

3•Curiositry•23h ago•4 comments

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

48•rstagi•4d ago•95 comments

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

4•merek•19h ago•7 comments

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

5•linzhangrun•13h ago•2 comments

Ask HN: What are your personal websites?

9•basilikum•22h ago•10 comments

Ask HN: AI Agent and harness containerization/security recommendations

2•dv35z•23h ago•1 comments

Web Client SDK

2•atoapaymentsapp•1d ago•0 comments

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

11•emerongi•1d ago•14 comments

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

49•iameli•3d ago•33 comments

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

3•salleisha•1d ago•1 comments

Claudio? Why we need and open source Claude

3•torrmal•1d ago•1 comments

Let's talk about: LinkedIn ghost jobs

14•xvxvx•2d ago•7 comments

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

4•Paarthmj•1d ago•7 comments

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

8•Uptrenda•19h ago•5 comments

Finitude of Knowledge

4•Abhishek000001•1d ago•3 comments

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

5•jesseandringa•1d ago•0 comments

Tell HN: Staged NPM publishing is awful

4•electrovir•1d ago•0 comments