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: Is it just me, or is software buggier across the board?

115•kadhirvelm•21h ago•99 comments

Ask HN: What Are You Working On? (July 2026)

280•david927•3d ago•1083 comments

Thinking: Alternate Distribution for Filmmakers

2•phaedrus044•3h ago•0 comments

I built a tool to get comments in CSV format from YouTube videos

2•cristyg0101•5h ago•1 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

10•Gold-Ask-lx•16h ago•7 comments

Ask HN: Add flag for AI-generated articles

1083•levkk•3d ago•456 comments

Tell HN: Fable Credits Are 150x More Expensive

9•yesitcan•16h ago•5 comments

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

28•sspehr•2d ago•92 comments

Tell HN: CloudFront VPC Origins is down

8•cyounkins•2h ago•2 comments

Ask HN: Is page 2 HN better?

8•Towaway69•13h ago•2 comments

Ask HN: Who build production apps with out seeing code?

2•amukbils•14h ago•5 comments

Revised Polish Alphabet

3•poloniaco•14h ago•1 comments

Ask HN: Anyone Else Burnt Out?

12•lmpdev•1d ago•5 comments

Ask HN: Are the heaviest AI users of your team blowing past everyone else?

6•ex-aws-dude•17h ago•4 comments

Do YC companies get preference on the homepage?

3•e_i_pi_2•18h ago•2 comments

ChatGPT now defaults to Codex instead of chat:(

4•amukbils•18h ago•3 comments

Making something on your own(without any LLM) feels so good

3•RajX_dev•19h ago•0 comments

Ask HN: What company could create an iOS/Android competitor worth adopting?

4•pwython•21h ago•6 comments

GitHub is starting to lockdown some of the previously public data

9•punkpeye•22h ago•5 comments

Ask HN: Does language complexity affect reasoning?

4•zecice•22h ago•6 comments

I reverse-engineered the three biggest agent-memory tools

2•pauliusztin•1d ago•4 comments

You've reached the end!