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

Tell HN: HN is being scraped for emails to scam

112•eks391•11h ago•40 comments

Ask HN: What does building hardware with AI look like?

6•mjs06•22h ago•2 comments

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

303•david927•1w ago•1093 comments

Ask HN: Why don't operating systems provide complete SSD write accountability?

3•amichail•17h ago•3 comments

Ask HN: What do coding interviews look like in the age of AI?

9•frankhorrigan•18h ago•5 comments

Tell HN: Google Search to start locking down search behind a login wall

45•exploraz•2d ago•30 comments

Ask HN: What is the state of self-hosting email in 2026?

46•0o777•2d ago•33 comments

Vercel should fork and maintain Deno

15•gfalcao•2d ago•13 comments

ChatGPT Desktop forwards your SSH agent to remote machines

221•DenGorbachev•1w ago•80 comments

Tell HN: Cloudflare's abuse report form is a blank page

17•basilikum•2d ago•7 comments

Ask HN: What AI agent infrastructure are you using in 2026?

4•aurumagent•1d ago•2 comments

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

67•hasley•1w ago•91 comments

Ask HN: Stripe closed us after one $1,500 invoice and never asked for evidence

173•snirgbs•18h ago•82 comments

Ask HN: Dropbox privacy policy, cause for concern?

11•herodoturtle•1d ago•2 comments

Anthropic, can you please make up your mind with your models?

5•xlayn•1d ago•8 comments

Ask HN: What are the most useful, concrete AI skills to independently learn?

90•shnock•2d ago•53 comments

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

103•mtlynch•1w ago•98 comments

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

14•znano•3d ago•23 comments

Ask HN: Best books you read in 2026?

19•013•1d ago•9 comments

You've reached the end!