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?

160•yehiaabdelm•1d ago•175 comments

Ask HN: Who is hiring? (July 2026)

241•whoishiring•2d ago•306 comments

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

39•argee•3d ago•33 comments

Fable 5. Safety Taken to an Extreme

4•sergeysmirnov•6h ago•1 comments

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

147•whoishiring•2d ago•431 comments

How many failed startups have you launched?

18•steelebillings•23h ago•11 comments

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

2•strapchay•9h ago•3 comments

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

56•seattle_spring•1d ago•33 comments

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

6•tomerbd•19h ago•4 comments

AI Is Boring

9•sverp•17h ago•8 comments

SponsorBlock Critical Security Vulnerabilities

3•IDIRIS•17h ago•4 comments

Claude Fable is useless for bioinformaticians

6•iqbal1980•19h ago•6 comments

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

5•buffer_overlord•20h ago•2 comments

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

247•zkldi•3d ago•34 comments

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

5•ope_john•16h ago•0 comments

Tell HN: Old Reddit now requires login

86•jay_kyburz•2d ago•17 comments

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

8•basilikum•16h ago•0 comments

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

2•TradingReality•20h ago•0 comments

Ask HN: Procrastination with AI?

3•caprock•20h ago•1 comments

Getting Rid of Scrolling

2•matteosaporiti•21h ago•1 comments

Ask HN: Possible issue impacting AWS Cloudwatch logs availability?

2•merek•21h ago•0 comments

Seattle Just Had an Earthquake

13•tobinfekkes•2d ago•9 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•183 comments

I'm opening VSCode less and less every day

21•othmanosx•2d ago•20 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•4d ago•19 comments

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

3•keepamovin•1d ago•11 comments

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

5•akarshhegde18•1d ago•3 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

6•tracyspacy•2d ago•2 comments

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

7•brandgefahr•1d ago•25 comments

You've reached the end!