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: Alternatives to GitHub

565•dhruv3006•16h ago•358 comments

Tell HN: Cloudflare silently injects its analytics when you switch nameservers

626•stagas•1d ago•193 comments

Email Client for the Terminal?

5•ewjloop•4h ago•4 comments

Best code editor without AI?

6•nerdyguy90•12h ago•7 comments

Ask HN: What's the Best Agent Harness?

5•cakbeslik•14h ago•2 comments

Ask HN: How can we care more about fewer things?

4•robalni•14h ago•3 comments

Ask HN: If you're burning tokens at scale, what are you using them for?

4•simonw•14h ago•3 comments

Ask HN: Does anyone else feel like nothing matters anymore?

148•ramesh31•5h ago•106 comments

Trivially bypass text watermarks by requesting a Base64 response

3•hanneshdc•14h ago•0 comments

Ask HN: Is GitHub Fried Today?

4•johncole•14h ago•3 comments

Ask HN: Is Mockup Data a thing you can ask from SaaS Salesperson?

3•xtiansimon•16h ago•2 comments

Ask HN: How do you keep up with HN these days?

89•simonebrunozzi•3d ago•145 comments

Ask HN: Is classical AI research still being done because it helps modern AI?

3•amichail•17h ago•0 comments

Ask HN: What is your favorite lightweight tool or CLI utility in 2026?

21•pranav_tech26•2d ago•33 comments

Ask HN: What tools are you using for human code review of AI-assisted code?

11•dafelst•1d ago•6 comments

Ask HN: Where to learn software engineering fundamentals?

12•mstank•1d ago•5 comments

Alternative to Internet Archive

19•earworms•2d ago•17 comments

Ask HN: GitHub employees what's going on? Why?

102•sharts•15h ago•79 comments

Ask HN: Is Kimi down for anyone else?

2•elendilm•13h ago•0 comments

Why is the GitHub trending page weirdly excluding DeepSeek projects?

9•tianyicui•1d ago•1 comments

Ask HN: Ive quit six systems for tracking my illness. What works?

2•Abh1Works•2d ago•1 comments

Ask HN: What LLM subscription/provider to use with pi harness?

3•vira28•1d ago•2 comments

Ask HN: How would you market this service?

4•dmzxnico•2d ago•8 comments

Ask HN: Should hard-tech founders join a problem or technology-first PhD lab?

13•misterballer•3d ago•14 comments

TrueMath – An open-source exact symbolic math tool

3•SAWANs•1d ago•2 comments

Ask HN: Does a human still review your code?

11•stikit•3d ago•23 comments

How does an ARP Spoofing Attack work?

6•emn4tor•3d ago•2 comments

You've reached the end!