frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AWS: Inaccurate Estimated Billing Data – $1.7 billion

1301•nprateem•2d ago•747 comments

Ask HN: What are your favorite blogs not about AI?

68•azhenley•6h ago•29 comments

Thanks HN for 15 years of support and helping me find my life's work

817•nicholasjbs•2d ago•104 comments

Freeact – undetectable browser automation CLI for AI agents via real browsers

2•xuviga•1h ago•0 comments

Ask HN: What Are You Working On? (July 2026)

289•david927•1w ago•1123 comments

Ask HN: How are you doing threat modeling for Terraform/IaC?

2•PotatoFy•8h ago•1 comments

Ask HN: Which blog have you recently found to be your favorite?

2•vinhnx•3h ago•0 comments

LG ThinQ Terms of Use

62•tedggh•1d ago•30 comments

Ask HN: Would you rent M3 Ultra from me?

5•realaccfromPL•19h ago•6 comments

Ask HN: Did Fable disappear from your Claude usage and requires credits now?

91•cromka•2d ago•86 comments

Ask HN: Add flag for AI-generated articles

1093•levkk•1w ago•458 comments

Ask HN: Is it just me, or is software buggier across the board?

134•kadhirvelm•4d ago•112 comments

Ask HN: Is float divergence/drift a real issue in many industries?

8•Swapnopam•20h ago•2 comments

Ask HN: USB-to-WiFi print server for old printers – do you want it?

6•ValdikSS•21h ago•7 comments

Ask HN: Is anyone else facing login issues on Facebook?

5•wasi0013•21h ago•3 comments

Ask HN: Are you building agents? What do they need access to?

2•asim•22h ago•3 comments

Prodigy – AI Workforce for professional teams

3•samayashar•22h ago•1 comments

Ask HN: How do you as a normal swe use AI?

4•atworkc•23h ago•4 comments

I procrastinated so hard I built a proxy to stop myself from procrastinating

9•thisislorenzov•1d ago•1 comments

Ask HN: Having a child before career has taken off

6•lassearpe•1d ago•24 comments

Ask HN: Should I do a CS masters at Cambridge or start as a new grad at Amazon?

29•sspehr•6d ago•95 comments

Ask HN: Are AWS Certs worth getting for experienced Devs?

14•Gold-Ask-lx•4d ago•18 comments

Ask HN: I built it and nobody came. What got you your first users?

11•deadcatfound•3d ago•26 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