frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Do you offload your coding to AI, or keep your skills sharp?

5•Hex08•1h ago•4 comments

Ask HN: Why so many dead comments lately?

4•mattm•1h ago•5 comments

Ask HN: What job boards are good these days?

7•phendrenad2•5h ago•7 comments

Ask HN: Which harness do you use with Qwen3.8 27B? And why?

2•grigio•7h ago•7 comments

LinkedIn is a terrible quality website

14•skyfantom•5h ago•10 comments

Ask HN: Declarative vs. Imperative

2•KenPainter•7h ago•1 comments

Anyone using a Wispr Flow alternative that is non-cloud?

19•itsjeremiahs•20h ago•16 comments

Tell HN: Substack obfuscating text to break reading mode

13•xnx•1d ago•2 comments

Ask HN: Is it impossible to disable Siri on macOS 27?

151•semidror•2d ago•83 comments

Ask HN: How do GitHub Copilot and Anthropic Claude compare in cost?

3•erwindegroot•11h ago•2 comments

Ask HN: When is fine-tuning a small LLM worth it?

9•kooldeep7•1d ago•12 comments

Porting a clearing-house money market to a smart contract

3•citizensinan•12h ago•0 comments

When Claude CLI asks for feedback, responding authorizes conversation capture

22•mmaunder•2d ago•2 comments

Ask HN: Which is cheaper: ChatGPT tokens or a 2nd Pro 20x subscription?

3•yesitcan•1d ago•3 comments

Ask HN: How do your teams share and distribute agent skills?

3•juanviera23•1d ago•2 comments

Tell HN: Firefox's default browser check dark pattern triggers Windows BSOD

5•xeonmc•1d ago•1 comments

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

122•keymasta•6d ago•130 comments

Ask HN: Why does it matter if no one reads your novel as long as the AIs do?

10•amichail•1d ago•27 comments

Ask HN: How do you interview devs in a post-AI world?

46•mdwelsh•4d ago•39 comments

Is Claude 20x actually 20x?

6•ko3us•1d ago•3 comments

Ask HN: Dead Internet

15•basilikum•1d ago•11 comments

Ask HN: Remember N8n? Anyone?

15•sankalpdomore•4d ago•10 comments

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

319•jakemanger•6d ago•275 comments

Ask HN: Ideas for getting more GitHub stars?

3•NatalieTrono•1d ago•3 comments

Ask HN: What do you expect from the next 5 years of AI?

8•msuniverse2026•1d ago•19 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