frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

31•mdwelsh•8h ago•21 comments

Ask HN: Anyone using DeepSeek Harness (dsh) as part of a customer-facing agent?

3•mmartindevelope•4h ago•0 comments

Ask HN: ICLR went from 143 submissions to 62,301 submission IDs – what happened?

6•luxshan_t•10h ago•4 comments

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

116•keymasta•2d ago•126 comments

Ask HN: Losing motivation to work in the IT field, need advice

19•trowa159•18h ago•11 comments

Ask HN: Remember N8n? Anyone?

6•sankalpdomore•22h ago•4 comments

My Thoughts on AI and LLMs

11•leonardovb•1d ago•20 comments

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

312•jakemanger•2d ago•268 comments

ESP32 p4 pico and IMX477 camera

4•time-q•1d ago•1 comments

Ask HN: What happens when Claude Code goes away?

4•HoldOnAMinute•1d ago•18 comments

Does this mean it's fine to use Claude subscriptions with third party harnesses?

3•jakemanger•1d ago•1 comments

Tell HN: You Can Use "Screen Mirroring" in EU on iOS 27 via Xcode and Device Hub

4•giuliomagnifico•19h ago•2 comments

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

20•learner_yearner•3d ago•23 comments

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

12•bhollan•2d ago•14 comments

Ask HN: Help choosing between AWS ECS and EKS

5•pigradish•1d ago•9 comments

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

78•nandakishor_ml•2d ago•13 comments

Ask HN: What Makes Tokens Expensive?

4•mtokarski•2d ago•7 comments

Claude Desktop Silently Associates with Common Files

6•3371•2d ago•1 comments

Ask HN: Alternatives to Twitter/X?

8•throwaway2027•1d ago•7 comments

Ask HN: How are you managing aging relatives passwords?

13•rylando•5d ago•19 comments

Ask HN: What self-hosted apps do you use daily?

6•osr00•2d ago•14 comments

Can I get insurance for company renting humanoids for parties?

4•cpsk•3d ago•16 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