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: What Are You Working On? (July 2026)

239•david927•1d ago•894 comments

Ask HN: Add flag for AI-generated articles

989•levkk•20h ago•435 comments

Finitude of Knowledge

2•Abhishek000001•3h ago•0 comments

Ask HN: How do you see 3D Gaussian Splats could be used in industry?

4•jesseandringa•4h ago•0 comments

Ask HN: Does appearance matter more than we admit as founders?

3•jmaha•1h ago•4 comments

Tell HN: Staged NPM publishing is awful

3•electrovir•7h ago•0 comments

Ask HN: How do you use LLMs for private discussions?

11•emerongi•23h ago•14 comments

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

48•rstagi•3d ago•95 comments

Let's talk about: LinkedIn ghost jobs

14•xvxvx•1d ago•6 comments

Omarchy 4 concerns, am I the only one?

4•shivc•7h ago•1 comments

Ask HN: Why isn't Google indexing information about the AT Protocol?

49•iameli•2d ago•33 comments

Anthropic extends Fable 5 access through July 19

4•dboreham•1d ago•2 comments

Ask HN: What Did You Work On? (June 2026)

3•adithyaharish•7h ago•2 comments

How does a Dev's job look like in a few years?

11•korrak•1d ago•18 comments

Ask HN: Resources for non-web software architecture?

4•xqb64•1d ago•0 comments

Ask HN: Would filesystem bookmarks be useful in your shell workflow?

4•manux81•1d ago•2 comments

Ask HN: Has AI changed the quality of HN posts?

7•codingbuddy•1d ago•8 comments

Tell HN: I De-Googled Myself

37•degoogled•3d ago•24 comments

AI and the Fall of Writing

3•Flundstrom2•1d ago•10 comments

Whats the Hardest Challenges in AI?

4•debpalash•1d ago•3 comments

Tell HN: Fable guardrails trigger on random questions

7•nocoder•1d ago•1 comments

Ask HN: How do you review AI code?

6•wonderfuly•1d ago•3 comments

An new try: C++ like program with the same characteristics as rust

3•juntz•1d ago•1 comments

Latest Debian 12 update opens MariaDB server to the internet

8•babuskov•1d ago•5 comments

Ask HN: My father died and I need to find my path

9•c4kar•2d ago•14 comments

Ask HN: What was the last task where only a frontier model could do it?

24•thedebuglife•3d ago•31 comments

Ask HN: HN frontpage feels boring now?

53•xeonmc•4d ago•37 comments

One Wikipedia page costs your AI agent 68,000 tokens

14•arhamislam5766•2d ago•8 comments

Map of All Known Knowledge

8•Abhishek000001•2d ago•21 comments

Ask HN: List of functional institutions fighting towards a free internet

2•ronfriedhaber•1d ago•0 comments