frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Why do tools like customer.io abandon self-serve after their Series A?

6•alessandroetc•3h ago•1 comments

I keep getting flagged for AI, but I suck at writing. How can I solve this?

4•quesobob•2h ago•6 comments

Ask HN: How about delayed MIT/GPL?

2•afiori•5h ago•1 comments

Ask HN: Where else do you spend time on the internet other than HN?

6•Gecko4072•8h ago•10 comments

Tell HN: Even HN is getting heavy traffic by AI crawlers

8•ksec•5h ago•3 comments

Ask HN: How do you use artifacts, and how do they help in your projects?

2•AmirMakirr•6h ago•0 comments

Ask HN: Phished Microsoft account, recovery useless

3•tgmatt•8h ago•0 comments

Requests for Startups: Energy

2•NarcisMirandes•8h ago•3 comments

Ask HN: Are you still using AI code autocomplete?

4•jawuilp•9h ago•11 comments

Ask HN: What are you using to access x.com at the moment?

5•throwaw12•15h ago•7 comments

Tell HN: Google Search to begin using opaque redirect URLs on search results

5•exploraz•11h ago•3 comments

One MCP directory for all docs.domain.tld (No auth needed)

3•respectattentio•11h ago•0 comments

Looking for people to follow designing systems to ship code with AI agents

7•mutahn•16h ago•1 comments

Ask HN: Why are Claude models so verbose?

4•JacobWolf•18h ago•8 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

30•foota•1d ago•8 comments

Ask HN: Will RAM / NVMe / Platter Drives ever come back down in price?

4•krautburglar•10h ago•4 comments

Open source in-browser log sanitizer, feedback required

2•andriimb•14h ago•2 comments

Ask HN: Is what Open Commonplace legal?

2•VishnuShayeq01•14h ago•0 comments

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

72•kaladan•2d ago•87 comments

Ask HN: Why do you use Ubuntu?

3•flanked-evergl•15h ago•4 comments

Ask HN: OpenBSD or FreeBSD?

3•simonebrunozzi•9h ago•3 comments

Ask HN: Opus 5 is unusable for writing, even internal use. Alternatives/fix?

7•m3h•13h ago•1 comments

Ask HN: How do you code review?

4•idose•16h ago•4 comments

Xiaomi's Xring Series suggests more OEM's switching to in-house SoCs

2•StizzurpXDD•18h ago•0 comments

What platform has the best AI CMO?

2•probablygrillin•20h ago•0 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