frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

461•jameslk•7h ago•123 comments

Tell HN: Don't use Postman, they proxy your info without your permission

85•neya•15h ago•2 comments

OpenAI seems to be silently re-enabling model training on Codex chats

510•user052919•1d ago•151 comments

Gitbook Breached

162•punchmesan•1d ago•38 comments

Ask HN: What's on Your Learning List?

2•carlos-menezes•2h ago•0 comments

Ask HN: Is AI good enough for math exercises?

3•Qision•3h ago•0 comments

Ask HN: Which TV do you recommend for privacy?

727•LecroJS•2d ago•877 comments

Ask HN: Who is hiring? (November 2026)

246•whoishiring•2d ago•239 comments

Ask HN: Is it worth reading The Art of Computer Programming now?

6•weavie•9h ago•2 comments

Ask HN: What's your current AI agentic setup?

56•eggbrain•3h ago•67 comments

Tell HN: GitHub Is Down

29•yuvadam•8h ago•16 comments

Ask HN: Does anyone have a contact with Cleveland-area Ham club?

164•stockresearcher•1d ago•23 comments

WorkOS reports security breach

77•werrett•1d ago•11 comments

Ask HN: Impact of US Elections on AI?

6•talmr•9h ago•7 comments

Ask HN: How to Keep the Edge as an Engineer?

8•spacebuffer•9h ago•3 comments

Tell HN: Scribd Breached

359•x______________•4d ago•123 comments

Tell HN: You now need a government id in order to create an Anthropic account

19•I_am_tiberius•23h ago•9 comments

Ask HN: What is the best non mainstream programming language or stack in 2026?

4•kbrannigan•17h ago•5 comments

Ask HN: Will cheap high-quality AI end this December?

6•amichail•1d ago•3 comments

Ask HN: Design My YouTube Feed

4•mrkn1•1d ago•8 comments

Ask HN: What is Google Flights' business model and has it changed recently?

7•lastofthemojito•19h ago•5 comments

Google reCAPTCHA on archive.is asking to scan a QR with a mobile device

4•linuxhdr•20h ago•1 comments

Ask HN: Does anyone enjoy work anymore?

27•jackmalpo•1d ago•25 comments

Getting hit with "Prove you are a human" at every other website

83•shmde•23h ago•46 comments

How did we end up with Frontier Lab oligopoly rather than a monopoly?

3•bdhe•1d ago•2 comments

Can the Cloudflare employee that just blocked Route53 Health Checks undo it

7•ferngodfather•1d ago•3 comments

Anthropic's HackerOne bot lawyered me out of a bounty

3•francesco_m•1d ago•0 comments

Ask HN: What to do about incorrectly suspended GitHub account, no notice?

7•sshah03•1d ago•3 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

40•stillatit•4d ago•3 comments

Heretic 2.0 Released: Training-free language model modification

22•razster•2d ago•4 comments
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