frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Does it still make sense to write code by hand?

3•fnoef•19m ago•2 comments

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

275•david927•2d ago•1067 comments

Ask HN: What company could create an iOS/Android competitor worth adopting?

4•pwython•2h ago•5 comments

GitHub is starting to lockdown some of the previously public data

6•punkpeye•2h ago•4 comments

Ask HN: Does language complexity affect reasoning?

4•zecice•3h ago•4 comments

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

46•kadhirvelm•2h ago•60 comments

I reverse-engineered the three biggest agent-memory tools

2•pauliusztin•4h ago•2 comments

Ask HN: Add flag for AI-generated articles

1080•levkk•2d ago•453 comments

Ask HN: Anyone Else Burnt Out?

9•lmpdev•9h ago•2 comments

Ask HN: Question regarding personal knowledge management

2•diarrheaasmr•6h ago•5 comments

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

27•sspehr•1d ago•91 comments

Ask HN: How do you do marketing in the age of slop?

8•probst•7h ago•10 comments

Does disposable or temp accounts hurt the business of SaaS or app? How?

3•YPANDAR•3h ago•2 comments

ChatGPT Remote Connection Failure

3•tumidpandora•16h ago•2 comments

Ask HN: How useful is Gemini for Google Apps?

3•cobbzilla•17h ago•3 comments

Ask HN: Is HN comments used to train AI models?

4•roschdal•2h ago•3 comments

Ask HN: US Equivalent of Anabin?

2•xqb64•1d ago•2 comments

Ask HN: How do you keep up with news in a particular sector?

4•doruk101•1d ago•14 comments

Ask HN: How can I publish a paid app to Google Play without giving up my privacy

5•SamCoding•19h ago•7 comments

Ask HN: How do you use Vim in the era of AI?

48•rstagi•5d ago•98 comments

Ask HN: A DC Powered Home?

4•dhosek•20h ago•7 comments

Ask HN: Advice for first-year CS students?

9•jassembk•22h ago•19 comments

I want to build an OTT app. Where should I start?

4•ibuld•1d ago•3 comments

Ask HN: Any objective research on which languages are best for AI agents?

5•mwigdahl•1d ago•6 comments

Ask HN: Using X vs. LinkedIn?

4•lalithaar•1d ago•4 comments

Ask HN: Can someone build open source Claude tag please?

2•lalithaar•1d ago•1 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