frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: I have been unemployed for 2y. 15 years of experience, US. What to do?

532•LetThingsBeDiff•21h ago•597 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

124•proberts•1d ago•177 comments

Does anybody read their emails anymore?

4•ky0ung•4h ago•5 comments

Tell HN: OpenRouter prompts to Minimax may have been read

34•dannyw•16h ago•5 comments

This Industrial Revolution Belongs to the Builders

10•pacificmaelstrm•22h ago•17 comments

Ask HN: What's stopping us from putting agents in general purpose robots?

8•ex-aws-dude•23h ago•5 comments

Ask HN: If AI tools are so good, why isn't your bug backlog empty?

116•ex-aws-dude•5d ago•126 comments

Ask HN: Rust, Zig, or C?

9•selectedambient•14h ago•16 comments

Ask HN: Any actual balanced reviews of GTA 6?

12•tetris11•1d ago•19 comments

Ask HN: Should Uber Ratings Decay over Time?

10•AB3TZ•22h ago•5 comments

Ask HN: What is your current hardware set up?

4•dfdydx•10h ago•4 comments

GitLab 19.6.0 is out and still vulnerable to Ruby2Shell and NGINX2Root

28•hoechst•2d ago•8 comments

Ask HN: Do you feel developers are more "grumpy" these days?

6•ksajadi•23h ago•6 comments

Second Brain and Agent Maintenance Thoughts on AI Usage?

5•harrisonsmith10•1d ago•1 comments

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

308•david927•1w ago•1118 comments

Ask HN: Where do you see Software in 5 years?

24•Odbyteusz•2d ago•31 comments

Ask HN: Why no AI-led memory vulns in Python?

11•uticus•2d ago•2 comments

Ask HN: Tips for transitioning from web development to embedded/firmware?

7•llmblockchain•2d ago•5 comments

The End of Continuous Rework

5•alexhr•2d ago•2 comments

Ask HN: When does your app need its own UI vs. using it via MCP?

12•amoorthy•2d ago•8 comments

Anthropic should give stock to Stack Overflow (and OpenAI too)

13•thetjmccarty•1d ago•6 comments

Ask HN: Did books that went viral on HN publish their manuscript?

3•illidan1000•1d ago•4 comments

Interesting Learnings Working for a Startup

21•Jessiejia11•3d ago•8 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