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

Ask HN: UK Rescue Rocket Sheds/Houses Information

19•burnt-resistor•4h ago•6 comments

Ask HN: How do you manage skills files?

6•imadtaieber•3h ago•6 comments

Ask HN: Show your micro-SaaS (September 2026)

5•genekrapivin•2h ago•0 comments

Ask HN: Who is using MCP in production?

188•sukit•3d ago•195 comments

Ask HN: Resources to get good at soldering?

268•tosmatos•4d ago•164 comments

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

3•meerita•5h ago•3 comments

Ask HN: Why were OpenAI, Claude, and Grok simultaneously down?

400•halcdev•3d ago•703 comments

Ask HN: Who is hiring? (September 2026)

248•whoishiring•5d ago•345 comments

Ask HN: What's the best place to learn about skills and AI for coding in general

4•rrmdp•3h ago•4 comments

Ask HN: Are we normalizing surveillance in the name of safety?

2•dennysora-main•10h ago•2 comments

Ask HN: Who wants to be hired? (September 2026)

111•whoishiring•5d ago•482 comments

Astra still fails at creating acceptable Rotational Ambigram

3•das_vicky•11h ago•3 comments

Tell HN: I want to see the same moon as you

14•UnderABlueMoon•1d ago•12 comments

Tell HN: Both recent GCP outages caused by fiber optic maintenance

19•fastest963•3d ago•1 comments

Cutting (Claude Code) token spend on dynamic workflows 80%

2•gojkoa•7h ago•2 comments

Ask HN: Are others seeing Google's reCAPTCHA rejecting Firefox users?

71•Animats•3d ago•23 comments

Ask HN: 30, burnt out, with 6-10 months of runway. What would you do?

31•throwaway_30yo•4d ago•26 comments

Ask HN: Any Alternatives to Archive.ph & co?

7•hebelehubele•1d ago•4 comments

MITx is ending access to its courses for learners in Iran on September 8

5•mahdihabibi•1d ago•2 comments

Are people who only seem happy when they're angry increasing? Seems like it

4•Webstir•9h ago•4 comments

Ask HN: Who is using FPGA for ML inference?

10•softwarewright•3d ago•15 comments

Ask HN: How do you build organic traction as an indie dev?

7•charm137•1d ago•5 comments

Ask HN: Founders that raised funding and shutdown, did you raise again?

18•asim•3d ago•1 comments

Ask HN: How have interviews changed over the last year?

12•mikodin•1d ago•0 comments

Ask HN: What is the ideal email domain setup?

7•bix6•2d ago•5 comments

Tell HN: NVIDIA's Acquisition of HuggingFace was for $HuggingFace

43•MontagFTB•3d ago•4 comments

Ask HN: Is AI a Powerdrill?

4•dfps•1d ago•3 comments

Xfinity silently blocks lots of new domains

15•dschwartz18•2d ago•6 comments

Ask HN: Books Recommendations?

7•washelterskelte•1d ago•11 comments

Fable hacked my piano, can I release the results?

5•jmpman•1d ago•6 comments