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)

11•david927•46m ago•7 comments

Let's talk about: LinkedIn ghost jobs

8•xvxvx•2h ago•5 comments

Anthropic extends Fable 5 access through July 19

2•dboreham•45m ago•1 comments

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

3•manux81•1h ago•0 comments

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

4•codingbuddy•3h ago•7 comments

AI and the Fall of Writing

2•Flundstrom2•4h ago•6 comments

Ask HN: Recommended technographic API?

3•Poomba•4h ago•2 comments

Whats the Hardest Challenges in AI?

3•debpalash•4h ago•2 comments

Ask HN: Are systems ready for the first negative leap second?

80•Asmod4n•6d ago•92 comments

Ask HN: How do you review AI code?

4•wonderfuly•5h ago•2 comments

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

2•juntz•7h ago•0 comments

Latest Debian 12 update opens MariaDB server to the internet

4•babuskov•7h ago•3 comments

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

47•iameli•1d ago•33 comments

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

47•rstagi•2d ago•86 comments

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

9•korrak•12h ago•14 comments

Ask HN: Resources for non-web software architecture?

3•xqb64•9h ago•0 comments

Tell HN: Fable guardrails trigger on random questions

6•nocoder•16h ago•0 comments

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

2•abhijeet_gupte•6h ago•1 comments

Tell HN: I De-Googled Myself

36•degoogled•2d ago•23 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

212•yehiaabdelm•1w ago•206 comments

Map of All Known Knowledge

7•Abhishek000001•1d ago•16 comments

Bring seamless PQC encryption into every messenger you already use

4•kvasilev•22h ago•0 comments

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

8•c4kar•1d ago•5 comments

One Wikipedia page costs your AI agent 68,000 tokens

14•arhamislam5766•1d ago•8 comments

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

24•thedebuglife•2d ago•29 comments

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

2•shanrizvi•1d ago•0 comments

Ask HN: Who is hiring? (July 2026)

246•whoishiring•1w ago•406 comments

Ask HN: HN frontpage feels boring now?

50•xeonmc•3d ago•37 comments

Google deleting all recently inactive accounts without phone number

52•superkuh•1d ago•40 comments

Ask HN: Where are the good search engines for mathematical formulas?

57•lo0dot0•1w ago•16 comments