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)

267•david927•2d ago•1044 comments

ChatGPT Remote Connection Failure

3•tumidpandora•3h ago•2 comments

Ask HN: Add flag for AI-generated articles

1071•levkk•2d ago•453 comments

Ask HN: How useful is Gemini for Google Apps?

3•cobbzilla•4h ago•3 comments

Ask HN: How's the idea of creating LinkedIn styled character profiles

3•anitroves•5h ago•4 comments

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

27•sspehr•1d ago•86 comments

Ask HN: How can I publish a paid app to Google Play without giving up my privacy

3•SamCoding•7h ago•4 comments

Ask HN: A DC Powered Home?

4•dhosek•8h ago•5 comments

Ask HN: US Equivalent of Anabin?

2•xqb64•18h ago•2 comments

Ask HN: Advice for first-year CS students?

8•jassembk•10h ago•15 comments

Is ChatGPT Down?

8•behindai•4h ago•4 comments

eBay is down this looks like a global incident 07142026

5•megamike•3h ago•2 comments

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

5•mwigdahl•14h ago•6 comments

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

2•doruk101•14h ago•11 comments

Ask HN: Using X vs. LinkedIn?

4•lalithaar•14h ago•1 comments

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

2•lalithaar•15h ago•1 comments

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

4•ibuld•21h ago•2 comments

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

7•HSK11•15h ago•16 comments

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

7•fsflover•15h ago•11 comments

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

48•rstagi•4d ago•95 comments

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

3•Curiositry•1d ago•4 comments

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

10•jerrycat101•22h ago•2 comments

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

5•Paarthmj•1d ago•7 comments

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

6•merek•1d ago•7 comments

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

49•iameli•3d ago•33 comments

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

12•emerongi•2d ago•14 comments

Ask HN: What are your personal websites?

9•basilikum•1d ago•11 comments

Let's talk about: LinkedIn ghost jobs

14•xvxvx•2d ago•7 comments

Ask HN: AI Agent and harness containerization/security recommendations

3•dv35z•1d ago•1 comments

Web Client SDK

2•atoapaymentsapp•1d ago•0 comments