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 would happen if your company stopped using all AI tomorrow?

7•jc_811•58m ago•4 comments

Claude 20x usage is only for the 5 hour window, not for the weekly limit

5•vmg12•1h ago•0 comments

Native Apps Why?

5•dmvjs•3h ago•5 comments

Ask HN: Which self-hosted Docker UIs support rootless mode?

3•vsilent•3h ago•0 comments

Ask HN: Why is Founder Mode not working for Airbnb?

4•jorisboris•7h ago•2 comments

Ask HN: What do your job interviews look like? (August 2026)

20•Hixon10•12h ago•6 comments

Ask HN: What is the next Burning Man in NA?

3•johnnyApplePRNG•5h ago•0 comments

Ask HN: What to do when a vendor doesn't respond to security issues?

3•cudder•6h ago•2 comments

Ask HN: Are Prompt Injections "Malware"?

2•razorbeamz•6h ago•7 comments

Ask HN: Is Rust is a real niche programming language?

3•juntz•7h ago•2 comments

Ask HN: What are your biggest problems and fixes with multisession engineering?

5•top_rooster•17h ago•2 comments

Which AI Do You Think Will Have the Greatest Impact on the World?

4•SudilaDasun•12h ago•3 comments

You Are the Harness

4•learningstud•12h ago•0 comments

Tell HN: PayPal blocks GrapheneOS

512•leumon•4d ago•325 comments

Why do I lose my passion and want to do nothing?

89•hanstyle•12h ago•79 comments

Is a One Person Company (OPC) just another type of Uber driver?

5•Bobby_Liu•20h ago•9 comments

Ask HN: AI for Home Lab Infra?

2•voakbasda•20h ago•2 comments

Ask HN: Do you run A/B Tests?

5•hackeryogi•1d ago•3 comments

Ask HN: What's a Good Physical Printer?

10•xrd•3d ago•12 comments

Ask HN: Hugging Face is out. Who is hosting open models?

23•FireUpTheTorren•4d ago•17 comments

Ask HN: Is .org now Trump-controlled?

23•selfhoster1312•1d ago•6 comments

Ask HN: What do you use to host side projects?

3•ilmak1704•18h ago•14 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

80•kaladan•1w ago•105 comments

You've reached the end!