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: Flying Car Practical Tech

3•NarcisMirandes•1h ago•1 comments

Ask HN: Thoughts on hiring junior engineers in 2026?

5•abhishekbasu•1h ago•5 comments

More Powerful Than Ever, (can't find work)

4•pieratt•1h ago•6 comments

Ask HN: CAD for wood working with LLM support?

123•reacharavindh•3d ago•125 comments

Ask HN: Which books did you read at least twice?

5•chessnode•7h ago•16 comments

Ask HN: Has anyone decompiled Claude Code yet?

2•matt3210•8h ago•9 comments

Ask HN: Do you want a router that has DD-WRT pre-installed?

160•Ixander•5d ago•151 comments

How to make my business survives it's first 5 years?

2•SSDIE•9h ago•4 comments

Tell HN: Google Argon on a Pro subscription is worthless

8•bb88•14h ago•8 comments

Ask HN: Are you hesitant to install vibe-coded apps?

17•ex-aws-dude•1d ago•23 comments

Ask HN: Apple HomeView. What problem is Apple Home solving?

4•NarcisMirandes•1d ago•10 comments

Ask HN: Demonstrating Skills When Everything Is a Prompt

7•Brisk4t•1d ago•2 comments

Ask HN: Did you 'invest' in NFTs or memecoins?

9•agent008t•1d ago•10 comments

Ask HN: Where has creativity in software gone?

35•piratesAndSons•2d ago•25 comments

Domain Health

8•anjalibery•2d ago•3 comments

Tell HN: Remember to migrate away from .name domain

8•nikanj•1d ago•5 comments

Free and Open-Source Facebook Scraper – Lightweight, No Headless Browser

22•mhloo•4d ago•2 comments

Ask HN: Can I tell my managers to skip the corporate bs and get to the point?

11•nhgiang•1d ago•22 comments

Tell HN: ChatGPT on macOS grants local computer access to cloud account

9•lxgr•2d ago•1 comments

Ask HN: Many SWEngs out there are considering re-training

24•jrowilliams•2d ago•28 comments

Tell HN: Don't mass spam employers with LLM generated emails

7•karamazov•1d ago•4 comments

Twitterwebviewer.net Is Back Online

4•orange999•21h ago•0 comments

Ask HN: Any secrets for reaching a human at large companies?

5•elebant•1d ago•7 comments

Are there any more startups with real technical challenges?

5•artifix•1d ago•8 comments

You've reached the end!