frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

How does an ARP Spoofing Attack work?

5•emn4tor•3h ago•0 comments

Ask HN: Should hard-tech founders join a problem or technology-first PhD lab?

10•misterballer•8h ago•11 comments

Be honest: When was the last time you cleaned up obsolete code from your repos?

3•PangeaRocks•3h ago•8 comments

Ask HN: What are you building with Mojo lang?

2•maxchisto•4h ago•0 comments

Ask HN: Does a human still review your code?

8•stikit•9h ago•10 comments

Need Help Learning Assembly

2•kilyo•5h ago•3 comments

Ask HN: What should I know before hosting eprints?

3•logicallee•5h ago•0 comments

Ask HN: Do you know how much head hunters cost?

4•mojomark•9h ago•12 comments

Live Experiment of the Veblen Effect

4•henryfudgeoffic•7h ago•0 comments

Ask HN: What are your unfinished projects?

3•adam_gyroscope•7h ago•5 comments

Kakehashi Update: Running Apple Clang build and lowering overhead to 1.24x

3•vlad_kalinkin•8h ago•0 comments

Wikipedia: List of predictions for autonomous Tesla vehicles by Elon Musk

5•glaslong•1h ago•0 comments

Ask HN: Why not expand accessibility laws to include the right to use AI?

2•amichail•8h ago•1 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

213•BoxOfRain•1w ago•72 comments

Ask HN: What's the AI Revolution "Model T Ford"?

3•ComputerPerson•9h ago•5 comments

New DeepSeek Pricing Published (Peak and Off-Peak)

5•mittermayr•14h ago•5 comments

Ask HN: Does AI watermarking present a new attack vector?

4•nathanfig•12h ago•5 comments

Tell HN: In 2021, there were 4.5 jobs per job seeker vs. 2.5 job seekers/job now

10•ed_balls•1d ago•4 comments

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

318•david927•5d ago•1178 comments

Ask HN: Move AI news from Hacker News to somewhere else?

9•thomasfl•15h ago•6 comments

Ask HN: Has anyone been fired because of an AI-driven DDoS attack?

4•novateg•6h ago•0 comments

Ask HN: How much money do you spend monthly on subscriptions for AI models?

13•marko-djuric•1d ago•33 comments

Ask HN: How are you preventing brainrot?

8•flyingcoder•19h ago•15 comments

Ask HN: How are you finding the job market in 2026?

17•dzonga•2d ago•19 comments

You've reached the end!