frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Tell HN: I'm 60 years old. Claude Code has re-ignited a passion

871•shannoncc•18h ago•760 comments

Addicted to Claude Code–Help

25•aziz_sunderji•1h ago•21 comments

Whisker – Self hosted e-commerce cart, pure PHP, zero dependencies

2•eLohith•1h ago•0 comments

Ask HN: What career will you switch to when AI replaces developers?

8•DGAP•2h ago•8 comments

Ask HN: How many of you hold an amateur radio license in your country?

74•ToddWBurgess•4d ago•95 comments

Ask HN: Anyone else feel this community has changed recently?

31•kypro•18h ago•18 comments

Ask HN: Doctor with software development experience – careers combining both?

4•frank-cheynne•8h ago•2 comments

Should AI web agents skip sponsored/ad results by default?

3•ilyasJosef•13h ago•4 comments

Tell HN: The proposed KIDS Act (HR 7757) effectively mandates biometric browsing

14•fokdelafons•22h ago•0 comments

Ask HN: Best way to implement logging and audit trails for AI apps?

4•devstatic•10h ago•0 comments

$1k and the difficult future that AI has left for many

3•01-_-•6h ago•1 comments

Ask HN: How are you using multi-agent AI systems in your daily workflow?

14•paifamily•1d ago•13 comments

Turns out making games is the easy part

4•clamlotus•18h ago•2 comments

Ask HN: Do You Have a Homelab?

12•ricardbejarano•1d ago•5 comments

Are there any companies who are anti-AI?

5•anti-ai-dev•21h ago•3 comments

Ask HN: Do You Enjoy Your Career in Tech Nowadays?

27•karakoram•1d ago•27 comments

Ask HN: Anyone fought a big corp over IP theft courts?

6•NatalijaAAD•1d ago•0 comments

Self taught gen-xers with senior dev/pm exp. Where's my imposter syndrome team?

3•_hugerobots_•23h ago•2 comments

Ask HN: Why do we still buy things by browsing catalogs?

5•dannythecount•1d ago•6 comments

I started making money online in 10th grade – some lessons about capital

5•udit_50•1d ago•1 comments

Ask HN: Has anyone noticed the fear-driven prompt suggestions that GPT5.3 makes?

14•cedarscarlett•2d ago•8 comments

Ask HN: How are LLMs supposed to be used for warfare?

5•sirnicolaz•1d ago•8 comments

Tell HN: Digital Ocean has run out of GPU droplets

17•nathannaveen•3d ago•4 comments

Ask HN: If your project is free, what are you building and why keep it free?

11•LeanVibe•3d ago•23 comments

Self-Learning Customer Marketing

3•davismartens•1d ago•0 comments

I lost my ability to learn anything new because of AI and I need your opinions

22•dokdev•3d ago•28 comments

Ask HN: What's your experience self-hosting in 2026?

27•rustcore•3d ago•11 comments

How do I get startups to use my open-code project?

5•ErezShahaf•1d ago•13 comments

Amazon degraded shopping- you have to put in cart to see the price

15•talkingtab•1d ago•13 comments

Ask HN: What will OpenAI employees do now who have signed notdividedorg petition

17•Imustaskforhelp•4d ago•16 comments
Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•9mo 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•9mo 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•9mo ago
give https://pg.llmwhisperer.unstract.com/ a try