frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

U.S. October PPI Rises 6.5% YoY, Highest in Nearly Four Years

145•moonypto•2h ago•127 comments

Ask HN: Do you see a human written book more valuable than an AI written one?

7•znano•7h ago•13 comments

Ask HN: Claude – OAuth request failed Temporarily unable to authenticate

4•franze•7h ago•1 comments

Claude OAuth Failures

27•tankenmate•7h ago•23 comments

Ask HN: What are you working on? (November 2026)

300•david927•4d ago•1074 comments

Claude AI Is Down

27•cheptsov•7h ago•6 comments

Tell HN: Major Microsoft Outlook/Exchange Online/Teams Outage in the Americas

13•wmchen•22h ago•1 comments

Google search hides Nvidia stock graph

12•nedx•12h ago•3 comments

ChatGPT Desktop forwards your SSH agent to remote machines

220•DenGorbachev•4d ago•79 comments

Outlook still down for anyone else?

6•rsoto2•13h ago•6 comments

Tell HN: Claude Code Is Down

37•Andugal•7h ago•21 comments

Ask HN: Why use Jev/decision models at all?

10•niceguy1827•1d ago•8 comments

Ask HN: What % of HN is now AI-generated?

7•simonebrunozzi•21h ago•4 comments

Ask HN: What are you doing now that Claude is down?

7•orbis-tertius•7h ago•7 comments

Ask HN: Do you still enjoy coding in C++?

62•hasley•4d ago•89 comments

Tell HN: Cast('abc' AS INTEGER) returns 0 in SQLite

3•prmph•1d ago•7 comments

Why Is Nvidia Valuable?

2•fraserphysics•19h ago•3 comments

Ask HN: What is holding back robots from being deployed everywhere?

7•mjs06•1d ago•20 comments

Ask HN: Is there hope against slop?

4•yuchi•9h ago•5 comments

I'm genuinely disappointed in our most visible tech leadership

8•AnneTrotter•23h ago•4 comments

Ask HN: How do you market your consumer product

9•mv4•1d ago•9 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

102•mtlynch•6d ago•97 comments

Inception's Diffusion LLM API Is Shutting Down

14•_matthew_•1d ago•7 comments

Tell HN: I'm working on original approaches to tag-based file organization

2•prmph•1d ago•1 comments

Claude Code's API billing depends on how often the cache expires

4•MaxBozhenko•1d ago•1 comments

What are your favorite tools?

13•d675•2d ago•9 comments

Any good ways on how to get into kernel dev?

8•ihms•2d ago•8 comments

Ask HN: Is lack of human imagination now the bottleneck instead of intelligence?

8•amichail•2d ago•14 comments

Ask HN: Personal "Tears in the Rain" Moments

14•HoldOnAMinute•1d ago•15 comments

Ask HN: How do you evaluate the skills your AI agents use?

25•enesalatas•4d ago•6 comments
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