frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Rumors of my death are slightly exaggerated

890•CliffStoll•2d ago•119 comments

Ask HN: We just had an actual UUID v4 collision...

81•mittermayr•8h ago•97 comments

Ask HN: How do we handle the rise of low quality "This is LLM" comments?

4•shantnutiwari•2h ago•12 comments

Reflections on NetBSD 11

3•morpheos137•2h ago•2 comments

0ctx – Local-first project memory for AI workflows

3•som3on3•8h ago•2 comments

Ask HN: How are you handling QA being bottlenecked with more AI-generated PRs?

3•softneon•9h ago•3 comments

Claude Flags Hantavirus Vaccine Questions as Security Risk

9•pell•7h ago•8 comments

Ask HN: What will happen as AI costs increase?

12•MetaWhirledPeas•19h ago•16 comments

Ask HN: What is your go-to solution for a personal wiki in 2026?

13•ex-aws-dude•22h ago•16 comments

"Surface" a Governed AI-Agentic Surface

2•paulbernard•16h ago•0 comments

Ask HN: Are we gonna back less powerful local LLMs

9•omertt27•1d ago•7 comments

Ask HN: What do you still do manually in 2026 that should be automated?

16•lishunsheng•1d ago•29 comments

Ask HN: Who got hired with Who wants to be hired? (On 2026)

17•Gooblebrai•2d ago•9 comments

Ask HN: How to start up as an individual developer?

11•alexyan0431•2d ago•10 comments

Ask HN: Is the Job Market Actually Bad?

131•idontwantthis•5d ago•205 comments

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

24•ge96•2d ago•39 comments

Ask HN: Is anyone seriously considering a career change?

30•zeven7•2d ago•27 comments

Ask HN: Is the future everyone having 100 MCP processes running on their PC?

7•ex-aws-dude•2d ago•4 comments

Ask HN: Terafab – Smart move or insane financial risk?

3•imheretolearn•1d ago•2 comments

Ask HN: Best Embedding Models?

17•devstein•3d ago•18 comments

Ask HN: The death of software development as a job?

17•piratesAndSons•2d ago•32 comments

Reviewing in the Age of AI

9•maxalbarello•2d ago•8 comments

Ask HN: What is the most exciting development in your field?

2•chistev•8h ago•1 comments

You've reached the end!

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