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: I am not able to find a job. Should I switch stacks?

5•need_a_work23•1h ago•4 comments

Ask HN: Is Google NERFing AI Mode?

3•PaulHoule•2h ago•2 comments

Ask HN: What's the Fuzz about Taste?

2•pls-dnt-deploy•2h ago•2 comments

Ask HN: Who is running the abusive scrapers?

9•jonatron•3h ago•2 comments

Ask HN: HN frontpage feels boring now?

40•xeonmc•16h ago•26 comments

Ask HN: Where are the good search engines for mathematical formulas?

56•lo0dot0•4d ago•16 comments

Ask HN: Is GitHub preparing to go behind a login wall?

55•reconnecting•1d ago•38 comments

Ask HN: How you manage local long lived research projects and LLM's?

6•ripplefringe•20h ago•2 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

204•yehiaabdelm•6d ago•203 comments

non-tech founder + choosing between buying ClaudeCode or CodeX

2•virtuallymundo•12h ago•5 comments

Ask HN: How to recover from thin content or de-indexing penalty on Google

4•anitroves•12h ago•4 comments

Ask HN: Would you pay to discuss a book with an official AI clone of its author?

4•briangao•13h ago•13 comments

Tell HN: Who wants to be hired" posts outpace "Who's hiring" 2 to 1

55•santiagobasulto•2d ago•34 comments

VentureBeat Events in San Francisco?

2•BriStoller•19h ago•0 comments

Ask HN: Best Podcasts of 2026 [So Far]

20•AbstractH24•1d ago•19 comments

Ask HN: Are systems ready for the first negative leap second?

11•Asmod4n•2d ago•11 comments

Ask HN: Who is hiring? (July 2026)

246•whoishiring•1w ago•393 comments

Ask HN: Opinionated Agent Setup?

3•lookACamel•20h ago•2 comments

Ask HN: What are agent sandboxes missing?

5•oryx1729•21h ago•3 comments

Nginx Vulnerabilities

2•finbot•22h ago•4 comments

Tell HN: I managed to unsubscribe from Adobe CC without being charged

26•frereubu•2d ago•3 comments

Ask HN: Who wants to be hired? (July 2026)

151•whoishiring•1w ago•531 comments

What if users start cloning SaaS using AI

7•mzubairtahir•1d ago•26 comments

Ask HN: Why is not using AI considered a form of arrogance?

6•amichail•18h ago•15 comments

Ask HN: Does Apple not care about fake apps in the App Store?

8•pentacent_hq•1d ago•16 comments

Ask HN: How do you keep documentation up to date with AI generated code?

5•ghosts_•1d ago•10 comments

Tell HN: Fable is now credits only

9•teruakohatu•2d ago•9 comments

Ask HN: Since when does Craigslist's front page have emojis?

40•argee•1w ago•33 comments

You've reached the end!