frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: What are forgotten topics in computing that deserve a new revisit?

14•draxen•2h ago•8 comments

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

712•jameslk•1d ago•184 comments

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

513•eggbrain•1d ago•638 comments

Ask HN: What cryptography book do you recommend for reading with 10 year olds?

85•mike_richards•3d ago•80 comments

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

525•user052919•2d ago•161 comments

Ask HN: How do AI agents help you in your daily life?

5•gonzar79•7h ago•5 comments

Ask HN: Which TV do you recommend for privacy?

728•LecroJS•4d ago•881 comments

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

108•neya•2d ago•7 comments

Gitbook Breached

164•punchmesan•2d ago•44 comments

Ask HN: Who is hiring? (November 2026)

250•whoishiring•3d ago•276 comments

Ask HN: How to verify response generated by AI in API response quickly

2•mehtahet619•11h ago•1 comments

Ask HN: Local AI Models for Coding and General Tasks?

4•giantg2•12h ago•2 comments

Ask HN: What is going on with SMS 2FA?

2•tkdb•13h ago•4 comments

Ask HN: What are some good resources on encoded/encrypted search?

2•lyfeninja•13h ago•0 comments

Ask HN: In a world with AI agents how has software task estimation changed?

3•yalogin•13h ago•2 comments

Ask HN: Where should I start to do marketing?

5•dhruonweb•1d ago•7 comments

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

166•stockresearcher•3d ago•23 comments

WorkOS reports security breach

80•werrett•3d ago•11 comments

Canva lays off 22% of its workforce; 1,270 people

33•princevegeta89•1d ago•4 comments

Ask HN: Credit card and loyalty analytics, where to start?

5•scipio1551•1d ago•0 comments

Ask HN: How do small teams pragmatically manage Dependabot fatigue?

4•maxk85•18h ago•3 comments

Courier: A macOS Postman Alternative

2•_booty•20h ago•0 comments

Ask HN: Any good AI design tools for pitch decks and visuals?

4•AlanAAG•12h ago•1 comments

Ask HN: Is it possible for a residential proxy provider to exist ethically?

4•walrus01•22h ago•1 comments

GitLab patched the CVE. Your leaked token is still valid

3•conduit-dev•13h ago•0 comments

What's the worst bug an AI coding agent silently introduced into your code?

4•riyashikanedunc•1d ago•3 comments

Ask HN: Impact of US Elections on AI?

9•talmr•1d ago•12 comments

Ask HN: AI Coding Preference

4•treebeard901•1d ago•4 comments

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

21•I_am_tiberius•2d ago•12 comments

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

6•kbrannigan•2d ago•9 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