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: Instagram blocked my new account what can I do?

2•coreyp_1•1h ago•6 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

187•yehiaabdelm•1d ago•189 comments

Happy Independence Day

31•GauntletWizard•13h ago•6 comments

Tell HN: Megalodon.jp is faster than archive.today and doesn't require reCAPTCHA

2•Cider9986•5h ago•1 comments

I can build anything, but only the void sees it

7•urbanogt5•9h ago•18 comments

Ask HN: America turns 250 today. What does it mean to you?

11•abixb•11h ago•4 comments

Ask HN: Who is hiring? (July 2026)

241•whoishiring•3d ago•310 comments

I built a environment reloader for Windows Shells

3•byjonas•7h ago•0 comments

Retrieval is not the future of AI – if it was, Google would have won already

3•lamprouge•7h ago•1 comments

Ask HN: Where are the good search engines for mathematical formulas?

2•lo0dot0•8h ago•1 comments

Ask HN: When will the stock market crash?

8•roschdal•5h ago•10 comments

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

39•argee•4d ago•33 comments

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

147•whoishiring•3d ago•448 comments

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

6•strapchay•23h ago•6 comments

Fable 5. Safety Taken to an Extreme

9•sergeysmirnov•20h ago•7 comments

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

60•seattle_spring•2d ago•35 comments

How many failed startups have you launched?

18•steelebillings•1d ago•11 comments

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

247•zkldi•4d ago•34 comments

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

7•tomerbd•1d ago•4 comments

Tell HN: Old Reddit now requires login

86•jay_kyburz•3d ago•18 comments

SponsorBlock Critical Security Vulnerabilities

3•IDIRIS•1d ago•4 comments

Ask HN: New employeer not providing equipment

28•gl9•7h ago•40 comments

Claude Fable is useless for bioinformaticians

6•iqbal1980•1d ago•6 comments

Ask HN: Where is the programming profession going?

166•syntaxbush•1w ago•184 comments

Happy Independence Day

5•Velocifyer•11h ago•0 comments

Seattle Just Had an Earthquake

13•tobinfekkes•2d ago•9 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•4d ago•19 comments

I'm opening VSCode less and less every day

21•othmanosx•3d ago•20 comments

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

5•ope_john•1d ago•0 comments

Tell HN: Check your subscription renewals (VPNs, etc.). They cost too much

3•simonebrunozzi•13h ago•3 comments