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

Tell HN: PayPal blocks GrapheneOS

446•leumon•13h ago•256 comments

Amazon now hides all customer reviews on products

65•tonymet•7h ago•31 comments

Ask HN: Does anyone have a VRAM tester? Something like MemTest86+ but for GPUs?

7•vkaku•3h ago•1 comments

Ask HN: How many of you juggle multiple agent sessions at the same time?

3•top_rooster•4h ago•0 comments

Ask HN: Hugging Face is out. Who is hosting open models?

13•FireUpTheTorren•8h ago•11 comments

Ask HN: AI agent acts. Your logs say so. But you wrote the logs

4•Yahyaaa•5h ago•3 comments

Ask HN: Why is AI civil tech and not military first?

7•esher•8h ago•13 comments

Ask HN: Dear LinkedIn, do you want to do business, yes or no?

7•stefanos82•10h ago•8 comments

Solving all open source tech debt with Codex

2•surajkrajan•7h ago•4 comments

Ask HN: Should I leave web development to study medicine in my mid-30s?

4•lovepuzzles•7h ago•6 comments

Ask HN: How do you guys stop coding agents from acting out of line?

3•vivekyyy•7h ago•2 comments

Ask HN: How to Vibe Design as Engineer?

3•metrofun•7h ago•1 comments

Ask HN: Ideas for dealing with overly-do-gooder agents

2•zof3•8h ago•0 comments

Tell HN: Gmail can mark legit mail from google.com as spam

5•salviati•8h ago•1 comments

Ask HN: How do you feel about the new 5H usage limit in Codex?

3•embedding-shape•9h ago•1 comments

Ask HN: If I am 16 what should I learn? Which books should read?

4•AmirMakirr•9h ago•11 comments

Another Webpage Screenshot and OG Image Generation API

2•foodpad•10h ago•0 comments

Ask HN: Why do tools like customer.io abandon self-serve after their Series A?

14•alessandroetc•1d ago•6 comments

Flock contract cancellations grow among cities, other jurisdictions

3•achristmascarl•6h ago•0 comments

Ask HN: Do you still do pair programming in this agentic age?

6•Andugal•15h ago•4 comments

Bast Text to Speech Tool

2•chaofan11•6h ago•0 comments

Ask HN: Where else do you spend time on the internet other than HN?

11•Gecko4072•1d ago•14 comments

Ask HN: Why are Claude models so verbose?

9•JacobWolf•1d ago•9 comments

Ask HN: Those making $500/month on side projects in 2026 – Show and tell

74•kaladan•3d ago•96 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

30•foota•2d ago•11 comments

AI Artist

2•thallukrish•9h ago•0 comments

Taalas API Anyone?

2•revanthmatha•23h ago•2 comments

Encoding Myself into the System

4•nharziro•23h ago•4 comments

I keep getting flagged for AI, but I suck at writing. How can I solve this?

6•quesobob•1d ago•11 comments

You've reached the end!