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

New DeepSeek Pricing Published (Peak and Off-Peak)

4•mittermayr•1h ago•5 comments

Ask HN: Why was my Show HN flagged?

2•gits997•56m ago•1 comments

Ask HN: How are you preventing brainrot?

7•flyingcoder•7h ago•10 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

213•BoxOfRain•6d ago•72 comments

Tell HN: In 2021, there were 4.5 jobs per job seeker vs. 2.5 job seekers/job now

8•ed_balls•16h ago•3 comments

Ask HN: How much money do you spend monthly on subscriptions for AI models?

10•marko-djuric•15h ago•27 comments

Ask HN: What are you working on? (August 2026)

318•david927•4d ago•1171 comments

Is HTTPS://status.claude.com loading for you all?

6•soorajsanker•5h ago•7 comments

Ask HN: How can you tell a site/app is vibe coded?

7•gkolli•16h ago•9 comments

Ask HN: What browser do you use?

8•Pieczasz•20h ago•28 comments

Ask HN: Small team devs – how do you collab with UI/UX designers in the AI era?

4•cameronnimmo•20h ago•2 comments

Weekly VSCode Grumbling

3•azatom•20h ago•0 comments

Cmux SSH Lagging

3•217•21h ago•2 comments

Ask HN: How are you finding the job market in 2026?

14•dzonga•1d ago•17 comments

Ask HN: Is AI code verification becoming your main bottleneck?

7•ochidaniel4•1d ago•6 comments

Ask HN: How's Everyone Feeling Today?

16•arm32•1d ago•22 comments

Ask HN: Are there any production LLM pipeline setups to learn from?

5•atif089•1d ago•0 comments

Gemini API removes postpay billing

6•alex14fr•1d ago•1 comments

You've reached the end!