frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

5•vivzkestrel•6h ago•2 comments

Ask HN: Who is hiring? (December 2026)

41•whoishiring•18h ago•127 comments

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

9•emilfihlman•10h ago•3 comments

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

17•whoishiring•18h ago•288 comments

Did social media kill personal spaces on the internet?

8•I-dont-know•12h ago•10 comments

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

20•imparikalp•23h ago•18 comments

Ahrefs switched to DR4 today: 183 of 212 startup directories lost rating

3•babacklindo•12h ago•6 comments

Caine and Buffett on the same day. RIP to two legends

4•hazemdawahi•7h ago•1 comments

Ask HN: What software and hardware are you sing for self hosted LLM rigs?

38•NegativeLatency•2d ago•19 comments

Ask HN: What long-running tasks do you let your AI machines work on?

11•f646993e074382f•19h ago•2 comments

Tell HN: CA starts sales tax on SaaS in 2027

3•Zaheer•13h ago•0 comments

Ask HN: Is Copilot in Outlook uniquely bad?

4•Schlagbohrer•22h ago•3 comments

Ask HN: Android takes 14GB on my phone. Why does it not include a manual?

19•RetroTechie•2d ago•9 comments

Ask HN: Where is all the amazing AI-generated software?

38•8bitbeep•6d ago•77 comments

Advice buying local AI machine

7•jay_kyburz•1d ago•10 comments

Ask HN: Is RSA in Jeopardy?

26•lyfeninja•6d ago•17 comments

Ask HN: If 2048-bit RSA were cracked, what would be the consequences?

13•partsch•2d ago•7 comments

Ask HN: When do you find it sane to delegate to AI?

6•couleur•1d ago•20 comments

Ask HN: Why bother with new programming languages?

16•avilay•3d ago•21 comments

Ask HN: What would make ads on a web site more tolerable?

5•psion•1d ago•18 comments

Ask HN: How can you prepare for the coming security apocalypse?

12•DeepLogin•1d ago•22 comments

Ask HN: Coworker rejects PR (a month in) because it does not meet his standards

23•LandOfMightDev•1w ago•46 comments

Ask HN: Any courses/products by indie makers worth getting today?

85•akudha•5d ago•43 comments

DietPi released a new version v10.9

21•stephanstsdietp•5d ago•3 comments

Ask HN: What cool smart home integrations do you have?

5•janalsncm•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