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: Is anyone experimenting with different ways of using LLMs for coding?

148•yehiaabdelm•1d ago•168 comments

Where can I find or get in contact with farmers specifically in the US?

2•strapchay•3h ago•3 comments

Ask HN: Who is hiring? (July 2026)

240•whoishiring•2d ago•299 comments

Ask HN: Since when does Craigslist's front page have emojis?

38•argee•3d ago•33 comments

How many failed startups have you launched?

17•steelebillings•17h ago•10 comments

Ask HN: Who wants to be hired? (July 2026)

146•whoishiring•2d ago•431 comments

Tell HN: Fewer PRs done with proper prompting, review, and refinement wins

6•tomerbd•13h ago•4 comments

AI Is Boring

8•sverp•11h ago•7 comments

SponsorBlock Critical Security Vulnerabilities

3•IDIRIS•11h ago•3 comments

Claude Fable is useless for bioinformaticians

5•iqbal1980•13h ago•6 comments

Ask HN: Why are so many "AI evangelists" posting such insufferable content?

55•seattle_spring•1d ago•33 comments

Well it's been 3 years of unemployment and $250k in debt

5•buffer_overlord•14h ago•2 comments

Cadreen – memory, governance, self-healing, and execution as one system

5•ope_john•10h ago•0 comments

An AI Koan

2•rcanand2025•12h ago•0 comments

Ask HN: What did you fail at and what did you learn from it?

6•basilikum•10h ago•0 comments

How do you test institutional (or algo) trades under real market conditions?

2•TradingReality•14h ago•0 comments

Ask HN: Procrastination with AI?

3•caprock•14h ago•1 comments

Tell HN: Old Reddit now requires login

85•jay_kyburz•2d ago•17 comments

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

247•zkldi•3d ago•34 comments

Getting Rid of Scrolling

2•matteosaporiti•15h ago•1 comments

Ask HN: Possible issue impacting AWS Cloudwatch logs availability?

2•merek•15h ago•0 comments

Seattle Just Had an Earthquake

13•tobinfekkes•2d ago•9 comments

Ask HN: Once you make your money from vibe coding innumerable products, then?

3•keepamovin•1d ago•14 comments

Ask HN: How do you get your open-source product good traction?

5•akarshhegde18•1d ago•3 comments

I'm opening VSCode less and less every day

21•othmanosx•2d ago•20 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•183 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•3d ago•19 comments

Ask HN: ChatGPT Go Plan

2•czeizel•11h ago•2 comments

Burned out, how do I get out of the rut?

7•brandgefahr•1d ago•21 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

6•tracyspacy•1d ago•2 comments