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: What non-AI products are you working on?

69•simonkk•15h ago•91 comments

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

115•whoishiring•3d ago•624 comments

Ask HN: Did Your Agent Escape?

3•s_u_d_o•4h ago•0 comments

Ask HN: Is building a SaaS business still worth it?

6•speedylight•8h ago•9 comments

Ask HN: Who is hiring? (December 2026)

232•whoishiring•3d ago•271 comments

The New York Times is shutting down their API

84•donohoe•2d ago•27 comments

Ask HN: Will we need gyms for our brains in the age of AI?

11•KingOfMyRoom•10h ago•7 comments

Ask HN: Do you find LLMs inefficient for non-coding work?

2•muddi900•11h ago•1 comments

Tell HN: HN search (Algolia) supports exact match using straight quotes only

4•Barbing•23h ago•6 comments

Ask HN: How are crypto exchanges preparing for post-quantum cryptography?

8•rootsudo•1d ago•2 comments

Ask HN: Why are so many of the 'new' posts so quickly [dead] these days?

7•jMyles•20h ago•10 comments

Tell HN: The next frontier in AI is making it sound like a normal person

5•andai•22h ago•0 comments

Ask HN: Freelance Programmers – Where are you pivoting?

8•brokegrammer•1d ago•11 comments

Ask HN: How to present my work (Internet and Software) to 3rd graders?

7•recvonline•1d ago•0 comments

Tell HN: Cloudflare added spending limit (finally)

8•amenghra•1d ago•1 comments

Ask HN: What are you using for an IDE these days?

12•jaredwiener•1d ago•19 comments

A Breadth-First Search for Industry Problems Worth Solving (Retail Edition)

6•alikafridi•2d ago•0 comments

Ask HN: Has AI changed what your team is willing to self-host at work?

3•guywithnoh•1d ago•2 comments

Tell HN: It's not just Claude, Codex (6.2-Astra Ultra) is also sabotaging work

17•emilfihlman•3d ago•6 comments

Ask HN: How do independent engineers make a living from open-source work?

25•imparikalp•3d ago•29 comments

Ask HN: What if all banking records vanished worldwide?

9•michaelsbradley•1d ago•8 comments

Ask HN: Is AI changing your writing process

2•cyndunlop•1d ago•0 comments

Ask HN: Claude Opus 5.5 keeps rejecting formalizing Epicurus' god, why?

4•dclavijo•1d ago•2 comments

Best way to process a YouTube video/playlist on your website?

9•vivzkestrel•3d ago•14 comments

Ask HN: Do AI companies want an AI pause/slowdown for selfish reasons?

6•amichail•2d ago•6 comments

Experiences Leaving School to Build?

4•chiefupstairs•1d ago•8 comments

Ask HN: Could I make a better Minecraft proxy than Velocity?

4•NotSoSerious•2d ago•0 comments

Did social media kill personal spaces on the internet?

14•I-dont-know•3d ago•19 comments

Ask HN: How to make my GrokBot chat to wife's Muse (Instict etc.)?

3•OxfordCommand•2d ago•6 comments

Delete storage from sites you don't want storing a lot

2•logicallee•1d ago•0 comments