frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: How to recover Google auth after phone stolen?

86•keymasta•4h ago•85 comments

Neovim have a ~$800k Bitcoin donation sitting untouched since 2023

295•jakemanger•9h ago•238 comments

Ask HN: Co-Founder(s). Do I need any? How would I even find them?

7•bhollan•3h ago•4 comments

Ask HN: What are you working on? (September 2026)

373•david927•4d ago•1186 comments

Whoever's doing OpenAI's system security is just incompetent in the worst way

4•SamInTheShell•3h ago•1 comments

Ask HN: What Makes Tokens Expensive?

2•mtokarski•3h ago•5 comments

Claude Desktop Silently Associates with Common Files

2•3371•5h ago•0 comments

Open-sourced jev architecture last year with model,paper and dataset

32•nandakishor_ml•15h ago•6 comments

Ask HN: What is the most career altering course or book you have gone through?

14•learner_yearner•1d ago•16 comments

Can I get insurance for company renting humanoids for parties?

4•cpsk•22h ago•15 comments

Zuck's bot increased our Vercel bill 10x

7•Marciok•23h ago•7 comments

Ask HN: How are you managing aging relatives passwords?

12•rylando•3d ago•17 comments

Ask HN: Lesser known features of macOS/iPadOS/iOS/etc. 27

15•lucasoshiro•2d ago•8 comments

Ask HN: Slow OpenAI Inference on AWS Bedrock

3•timedude•1d ago•2 comments

Ask HN: Are 80s high school hobby programmers overwhelmingly pro-AI?

16•amichail•3d ago•39 comments

Is anyone else losing their motivation to nerd out and tinker because of AI?

15•rizsyed1•1d ago•38 comments

Tell HN: iOS 27 does not allow Apple Intelligence to be disabled

74•nunez•2d ago•29 comments

Ask HN: What default model do you use and why?

62•stikit•5d ago•107 comments

Started Learning Pentesting

3•muzan•2d ago•1 comments

We struggled with DevOps, so built a open source agentic platform just for this

2•abmuhammadhamza•1d ago•0 comments

A mnemonic-free wallet where the private key never leaves the phone's TEE

3•niumeta_TZ•1d ago•0 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