frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

ChatGPT Desktop forwards your SSH agent to remote machines

33•DenGorbachev•2h ago•9 comments

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

221•david927•13h ago•732 comments

Ask HN: Do you still enjoy coding in C++?

17•hasley•1h ago•11 comments

Ask HN: How your SEO traffic doing? Up or down?

2•bigmuzzy•54m ago•0 comments

Ask HN: How do you manage your AI agents' context across clients and projects?

68•Michel_Aventin•2d ago•44 comments

Ask HN: Will Humans Become Useless?

2•misano•3h ago•5 comments

Those who have lost their job to AI what was your job?

2•dev_grex•5h ago•3 comments

Ask HN: How did you convince family and friends to join your XMPP/Matrix server?

99•mtlynch•1d ago•91 comments

Tell HN: A flood of reports of Opus 5.5 being nerfed

18•b--l•11h ago•11 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

734•jameslk•5d ago•201 comments

Ask HN: Is it normal to not write code for a years as software engineer?

3•khalidahmad•8h ago•5 comments

Ask HN: What's your current AI agentic setup?

565•eggbrain•4d ago•696 comments

Ask HN: What in the world is taking Ubuntu so long?

217•linsomniac•2d ago•139 comments

I am building Threadz. Human first AI writing app

3•shoebilyas_hanz•10h ago•1 comments

Ask HN: What are your advice for a CS/IT student for the future?

5•L0in•23h ago•19 comments

Claude usage credits purchased after Dec 7 will expire 12 months after purchase

17•bbg2401•2d ago•10 comments

I turned an ESP32-S3 into a Tailscale gateway with recovery functions

8•Mattboxx•1d ago•2 comments

We're bringing back the HN meeting in Mexico City

10•ysangkok•1d ago•0 comments

Ask HN: If LLM reverse engineering is deemed illegal, is that precedent for OSS?

4•apatheticonion•1d ago•10 comments

Is YouTube starting to protect channel RSS feeds?

6•kradeelav•1d ago•2 comments

HN's HTML has changed slightly

3•1vuio0pswjnm7•16h ago•2 comments

Seeking advice: Wix stolen my .com domain

13•wixcom•2d ago•12 comments

Ask HN: What tech companies do you think have a good moral compass?

6•gehwartzen•2d ago•16 comments

Ask HN: What fun things to do with an iPhone 11?

9•wanderingpixel•2d ago•7 comments

Tell HN: Be Careful with Stripe Connect

17•breue•2d ago•4 comments

Slickdeals.net Is Compromised

22•intenex•2d ago•2 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