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? (August 2026)

16•david927•35m ago•34 comments

Ask HN: My dev blog has 11k followers. I stopped writing it. What would you do?

3•zlatkov•4h ago•4 comments

The Systemic Collapse of the AI Industry: Ideology, Hardware, and CapEx Crisis

2•impartial2602•2h ago•0 comments

Ask HN: Why can't we use both doors?

2•Dfol•4h ago•2 comments

Mossad accicentally injected data to a French lawyer phone instead of extracting

13•0x54MUR41•14h ago•2 comments

Ask HN: Is there a mobile operating system with (wasi) container support?

2•wseqyrku•2h ago•2 comments

Ask HN: Should AI's tell you they're AI?

6•logicallee•7h ago•4 comments

Ask HN: How do you go from writing code to deploying with agents?

12•sakuraiben•18h ago•8 comments

Ask HN: What is your database size

6•kureikain•16h ago•3 comments

The State of Google

8•3dedb728-3f77•16h ago•7 comments

Ask HN: Anyone that has built a marketplace, what has been your experience?

4•mfisc_019•15h ago•3 comments

Agentcn – Installable AI Agents

3•anayat•11h ago•0 comments

Becoming Bridge Builders

2•Revdrbkeithhane•4h ago•0 comments

Ask HN: Is Ask HN Shrinking?

17•keiferski•1d ago•15 comments

Ask HN: Why is Open POWER Foundation a wasteland?

6•climate_denier_•19h ago•2 comments

Ask HN: What can I do with a single R9700?

4•scott01•1d ago•8 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

6•BoxOfRain•2d ago•1 comments

DeepSeek announced to raise its API price tremendously

30•alexwwang•3d ago•24 comments

Laguna S 2.1:118B-a9B better than Qwen3.5:122B-a10B? So far, yes

4•spottedmarley•2d ago•2 comments

How AI is breaking the British State

5•andsoitis•19h ago•5 comments

Ask HN: Did GitHub remove the stargazers list?

27•reconnecting•4d ago•5 comments

Read HN twice a day for the last decade. Here's my list of S-Tier HN links

111•vivzkestrel•4d ago•21 comments

Ask HN: What is a good advice for someone looking to fractional hire a team?

5•vanessa1211•2d ago•6 comments

You've reached the end!