frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

7•korrak•5h ago•12 comments

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

80•Asmod4n•5d ago•92 comments

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

45•iameli•21h ago•33 comments

Google deleting all recently inactive accounts without phone number

52•superkuh•1d ago•38 comments

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

46•rstagi•2d ago•86 comments

Tell HN: Fable guardrails trigger on random questions

4•nocoder•8h ago•0 comments

Bring seamless PQC encryption into every messenger you already use

4•kvasilev•14h ago•0 comments

Tell HN: I De-Googled Myself

35•degoogled•2d ago•21 comments

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

2•shanrizvi•18h ago•0 comments

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

212•yehiaabdelm•1w ago•206 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•1d ago•29 comments

Map of All Known Knowledge

5•Abhishek000001•21h ago•15 comments

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

5•c4kar•1d ago•5 comments

Ask HN: HN frontpage feels boring now?

50•xeonmc•3d ago•36 comments

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

57•lo0dot0•1w ago•16 comments

Ask HN: Who is hiring? (July 2026)

246•whoishiring•1w ago•405 comments

Ask HN: Burned Tokens scented candle ideas

5•Tade0•2d ago•16 comments

Ask HN: Is GitHub preparing to go behind a login wall?

56•reconnecting•4d ago•38 comments

Tell HN: Who wants to be hired" posts outpace "Who's hiring" 2 to 1

57•santiagobasulto•5d ago•35 comments

Ask HN: I hate coding agents. Is this skill issue?

18•cmar00•3d ago•18 comments

Ask HN: I am not able to find a job. Should I switch stacks?

12•need_a_work23•3d ago•19 comments

Ask HN: How has the internet devolved in recent years?

3•fridayblunt•1d ago•1 comments

You've reached the end!

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