frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•11mo 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•11mo 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•11mo ago
give https://pg.llmwhisperer.unstract.com/ a try

.de TLD Issue Solved

3•kaltsturm•32m ago•0 comments

Looking for Technical Co-Founder

10•pinarsaas•8h ago•0 comments

Ask HN: Is there a term for feeling sad about forced AI adoption?

13•ge96•4h ago•12 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

206•proberts•4d ago•249 comments

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

148•whoishiring•4d ago•450 comments

Ask HN: Best Embedding Models?

15•devstein•19h ago•15 comments

Ask HN: Who is hiring? (May 2026)

304•whoishiring•4d ago•445 comments

Ask HN: Where are you getting your AI news from?

8•baetylus•1d ago•9 comments

Tell HN: Archive.ph Is Gone

5•_tk_•10h ago•5 comments

Why Does a Single Firefox Tab Take Almost 1.5GB RAM?

6•syeare•17h ago•9 comments

Ask HN: Is the Job Market Actually Bad?

125•idontwantthis•3d ago•199 comments

Ask HN: Is a hands-off, family-friendly, de-Googled "home lab" feasible?

10•strix_varius•1d ago•10 comments

Tell HN: An update from the new Tindie team

85•altairprime•6d ago•49 comments

Ask HN: When did you move from AI agentic loops to simpler deterministic system?

7•laxmena•1d ago•4 comments

Tell HN: An app is silently installing itself on my iPhone every day

593•_-x-_•1w ago•188 comments

Tell HN: The saddest irony of my/our craft

18•dakiol•1d ago•12 comments

Ask HN: Those building Swift apps without touching Xcode, what is your workflow?

18•p5v•2d ago•9 comments

Can anyone point me to a ShowHN first post policy documentation?

9•upwindchange•1d ago•10 comments

You've reached the end!