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: Why do we need MCP?

4•jwally•1h ago•11 comments

Ask HN: Why still no unified standard file to describe all skills/mcps for repo?

2•opwizardx•49m ago•1 comments

Tell HN: PayPal blocks GrapheneOS

507•leumon•2d ago•324 comments

Ask HN: What BOYK AI client are you using?

3•yeeyang•7h ago•0 comments

Is "An agent with tools" the only valid LLM application?

4•gmarkwa•15h ago•2 comments

Ask HN: Alternatives to Fail2ban?

5•jech•23h ago•5 comments

Ask HN: What's a Good Physical Printer?

6•xrd•1d ago•10 comments

Ask HN: Is observability over the dependencies in codebases still a problem?

2•enismustafaj•15h ago•0 comments

Ask HN: Why are onionv3 services not more popular?

5•smalltorch•22h ago•4 comments

Ask HN: Any true alternatives to electron JavaScript?

11•dhruv3006•23h ago•12 comments

Ask HN: Any blogs/personal notes from game devs who self-published a game?

5•ssenssei•23h ago•0 comments

Ask HN: AI writes better code than me. How to keep my identity?

13•jdw64•18h ago•19 comments

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

21•FireUpTheTorren•1d ago•15 comments

Zed: Edit predictions are leaving the free Personal plan on October 7

8•lumpa•16h ago•2 comments

Ask HN: How do you use multiple sessions for software engineering?

4•top_rooster•21h ago•2 comments

Amazon now hides all customer reviews on products

83•tonymet•1d ago•50 comments

TwitterWebViewer has been permanently discontinued

11•avidruntime•18h ago•5 comments

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

8•AmirMakirr•1d ago•18 comments

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

78•kaladan•5d ago•97 comments

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

7•lovepuzzles•1d ago•13 comments

Ask HN: How to Vibe Design as Engineer?

7•metrofun•1d ago•8 comments

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

7•esher•1d ago•15 comments

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

4•embedding-shape•1d ago•2 comments

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

14•alessandroetc•2d ago•8 comments

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

8•stefanos82•1d ago•8 comments

Ask HN: Is the FTC National Do Not Call Registry a False Contingency or Placebo?

3•eth0up•21h ago•0 comments

Ask HN: Why are Claude models so verbose?

11•JacobWolf•3d ago•11 comments

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

31•foota•4d ago•12 comments

You've reached the end!