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: Add flag for AI-generated articles

231•levkk•3h ago•150 comments

Ask HN: What Are You Working On? (July 2026)

100•david927•7h ago•304 comments

Let's talk about: LinkedIn ghost jobs

11•xvxvx•8h ago•5 comments

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

6•emerongi•6h ago•12 comments

Anthropic extends Fable 5 access through July 19

3•dboreham•7h ago•2 comments

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

3•manux81•8h ago•1 comments

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

5•codingbuddy•9h ago•7 comments

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

47•rstagi•2d ago•87 comments

AI and the Fall of Writing

2•Flundstrom2•10h ago•7 comments

Ask HN: Recommended technographic API?

3•Poomba•10h ago•5 comments

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

47•iameli•1d ago•33 comments

Whats the Hardest Challenges in AI?

3•debpalash•11h ago•2 comments

Ask HN: How do you review AI code?

4•wonderfuly•12h ago•2 comments

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

9•korrak•19h ago•15 comments

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

2•ronfriedhaber•7h ago•0 comments

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

2•juntz•14h ago•0 comments

Latest Debian 12 update opens MariaDB server to the internet

4•babuskov•14h ago•3 comments

Ask HN: Resources for non-web software architecture?

3•xqb64•16h ago•0 comments

Tell HN: Fable guardrails trigger on random questions

6•nocoder•22h ago•0 comments

Tell HN: I De-Googled Myself

36•degoogled•2d ago•23 comments

Map of All Known Knowledge

7•Abhishek000001•1d ago•17 comments

Concerned about how companies will manage their cloud bill once agents dominate

2•abhijeet_gupte•12h ago•1 comments

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

8•c4kar•1d ago•6 comments

One Wikipedia page costs your AI agent 68,000 tokens

14•arhamislam5766•2d ago•8 comments

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

24•thedebuglife•2d ago•30 comments

Bring seamless PQC encryption into every messenger you already use

4•kvasilev•1d ago•0 comments

Ask HN: HN frontpage feels boring now?

50•xeonmc•4d ago•37 comments

Bitemporal provenance in agent memory: What did we believe, when, and why

2•shanrizvi•1d ago•0 comments

Google deleting all recently inactive accounts without phone number

52•superkuh•1d ago•40 comments

Ask HN: Burned Tokens scented candle ideas

5•Tade0•2d ago•16 comments