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)

239•david927•16h ago•857 comments

Ask HN: TS Compiler

4•apple_george•5h ago•1 comments

Ask HN: Recommended Merchant of Record and Affliate Setup

3•tisdadd•13h ago•3 comments

Ask HN: How do you set comp at an early stage startup?

2•jeffreyfate•9h ago•1 comments

Ask HN: What Project are you the most proud of?

3•emn4tor•9h ago•6 comments

Ask HN: Are functional programmers more upset about how good AI is at coding?

8•amichail•14h ago•14 comments

Ask HN: Should a coding client import another client's rules by default?

2•ryanmerket•13h ago•0 comments

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

14•sakuraiben•1d ago•9 comments

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

7•zlatkov•20h ago•8 comments

Ask HN: Is this normal HN ranking?

3•unclebucknasty•5h ago•3 comments

The State of Google

14•3dedb728-3f77•1d ago•8 comments

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

6•impartial2602•18h ago•0 comments

Ask HN: What is your database size

8•kureikain•1d ago•3 comments

Ask HN: Is Ask HN Shrinking?

18•keiferski•1d ago•15 comments

Ask HN: Why is Open POWER Foundation a wasteland?

8•climate_denier_•1d ago•2 comments

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

6•mfisc_019•1d ago•3 comments

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

8•logicallee•22h ago•4 comments

Agentcn – Installable AI Agents

4•anayat•1d ago•0 comments

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

21•0x54MUR41•1d ago•4 comments

DeepSeek announced to raise its API price tremendously

31•alexwwang•4d ago•24 comments

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

6•BoxOfRain•2d ago•1 comments

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

3•wseqyrku•17h ago•3 comments

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

4•scott01•1d ago•8 comments

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

4•spottedmarley•3d ago•2 comments

Ask HN: Did GitHub remove the stargazers list?

29•reconnecting•5d ago•5 comments

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

114•vivzkestrel•4d ago•22 comments

You've reached the end!