frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Why are OpenAI, Claude, and Grok simultaneously down? Coincidence?

57•halcdev•49m ago•39 comments

Ask HN: Founders that raised funding and shutdown, did you raise again?

4•asim•2h ago•0 comments

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

105•whoishiring•2d ago•404 comments

Ask HN: Who is using MCP in production?

5•sukit•4h ago•2 comments

Ask HN: Who is hiring? (September 2026)

238•whoishiring•2d ago•299 comments

Ask HN: Are Technical Blogs Dead?

8•quaintdev•7h ago•18 comments

Ask HN: Where do you get your AI (technology) news?

8•BtM909•1d ago•4 comments

ChatGPT Linux GUI version updates redownload all files, require 1.4GB download

9•juujian•1d ago•0 comments

Resources to Get Good at Soldering?

7•tosmatos•1d ago•8 comments

Ask HN: What would happen if your company stopped using all AI tomorrow?

39•jc_811•3d ago•88 comments

Kimi K3 and GLM-5.3 are better than Gemini 3.8 Flash

11•theHocineSaad•22h ago•2 comments

Ask HN: How to ask questions in Ask HN

4•samikama•1d ago•15 comments

Ask HN: Would you be interested in using a VoIP system that has an operator?

2•left-struck•1d ago•6 comments

Knowledge Graph Engine for Codebases

4•Shourya_55•1d ago•12 comments

Noviz AI Agent for ERPNext – A Reasoning Layer for ERPNext

2•tajdink•1d ago•0 comments

Ask HN: Anyone homeschooling their kids?

12•wbnns•1d ago•23 comments

Whose interview process has caught up to the new way of working?

4•verygoodenginee•1d ago•7 comments

Dropbox Data Breach

48•hmate9•2d ago•7 comments

Claude Code now appends a link to a Claude session in every commit

13•codexon•2d ago•2 comments

Were Claude's Weekly Limits Cut in Half? (and obscured by another 50% "deal"?)

2•benwills•1d ago•3 comments

Is it just me, or has Claude Opus gotten worse recently?

12•de6u99er•2d ago•21 comments

Ask HN: What do your job interviews look like?

30•Hixon10•3d ago•12 comments

Old.reddit.com no longer works for logged out users

35•kradeelav•2d ago•15 comments

Ask HN: Does HN block mobile browsers?

5•pbohun•1d ago•7 comments

You've reached the end!

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