frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: How can I get better at using AI for programming?

221•lemonlime227•10h ago•256 comments

Computer animator and Amiga fanatic Dick van Dyke turns 100

231•ggm•17h ago•82 comments

I miss the old Internet of 10-20 years ago

4•morpheos137•2h ago•2 comments

What is the most effective way to learn programming?

3•luis_journey•2h ago•2 comments

Meta "deletes" years of conversations with friends/family

5•effectkai•10h ago•4 comments

Ask HN: How do you handle release notes for multiple audiences?

36•glidr_dev•6h ago•45 comments

Ask HN: Any online tech spaces you hang around that don't involve AI?

6•jc_811•12h ago•5 comments

Ask HN: Thought-Provoking Books

5•Agraillo•13h ago•6 comments

AI coding is sexy, but accounting is the real low-hanging automation target

34•bmadduma•2d ago•24 comments

Ask HN: Should "I asked $AI, and it said" replies be forbidden in HN guidelines?

967•embedding-shape•4d ago•461 comments

Ask HN: Did anyone else notice that the OpenAI Labs website was completely gone?

22•underlipton•1d ago•7 comments

How does a "you interview for US company, we do the work" scam work?

31•marttilaine•1d ago•37 comments

Our "enterprise" experience with Stripe after $1B+ processed (be careful)

23•Boulderchaim•1d ago•8 comments

Searching: Cybersecurity Classes

3•prospopa•23h ago•1 comments

Ask HN: Is writing without AI worse than sharing your medical records online?

3•amichail•1d ago•5 comments

Ask HN: Go all-in on AI Boom vs. enjoy parenthood?

10•pratchett•1d ago•21 comments

Referral to coach for fundraising for pre-revenue seed capital?

3•FWKevents•1d ago•1 comments

Ask HN: How can I delete a Substack account in Australia?

5•freefrog334433•1d ago•2 comments

Why are "remote" jobs in late 2025 still limited to hiring in US/CA/UK/DE?

22•ftonato•3d ago•14 comments

Ask HN: Can someone explain why OpenAI credits expire?

5•jemiluv8•2d ago•12 comments

Ask HN: End of Year Book Recommendations

20•marai2•3d ago•9 comments

Ask HN: ArXiv Endorsement as Independent Researcher

6•7777777phil•1d ago•6 comments

Ask HN: Relatively SoTA LLM Agents from Scratch?

3•solsane•2d ago•3 comments

Revolutionizing Lighting: How Smart LEDs Are Transforming Homes and Businesses

3•emmasuntech•1d ago•0 comments

Ask HN: Has anyone been able to renew their IEEE this month?

8•chrisaycock•2d ago•0 comments

Practical Tips for Gemini 3

6•xiaoru•2d ago•1 comments

Ask HN: What hard problems are still underexplored?

15•brihati•2d ago•22 comments

Ask HN: What are young technically minded people reading?

18•drdec•4d ago•27 comments

You've reached the end!

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•6mo 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•6mo 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•6mo ago
give https://pg.llmwhisperer.unstract.com/ a try