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: Resources to get good at soldering?

243•tosmatos•3d ago•152 comments

Ask HN: Who is using MCP in production?

181•sukit•2d ago•191 comments

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

397•halcdev•2d ago•699 comments

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

12•UnderABlueMoon•21h ago•11 comments

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

4•charm137•5h ago•1 comments

Ask HN: Who is hiring? (September 2026)

247•whoishiring•4d ago•343 comments

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

11•mikodin•8h ago•0 comments

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

111•whoishiring•4d ago•469 comments

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

18•fastest963•2d ago•1 comments

Ask HN: Is AI a Powerdrill?

4•dfps•9h ago•3 comments

Fable hacked my piano, can I release the results?

4•jmpman•10h ago•2 comments

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

4•hebelehubele•16h ago•3 comments

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

70•Animats•2d ago•22 comments

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

30•throwaway_30yo•3d ago•26 comments

Astra One Shotted Cains's Jawbone

5•marcushyett•15h ago•5 comments

Ask HN: Books Recommendations?

7•washelterskelte•23h ago•8 comments

Ask HN: Who is using FPGA for ML inference?

10•softwarewright•2d ago•14 comments

Ask HN: Initial Thoughts on GPT-6 Astra?

8•zof3•1d ago•12 comments

Xfinity silently blocks lots of new domains

14•dschwartz18•1d ago•5 comments

OpenAI's rogue agents used ntfy.sh as a pub/sub channel

2•coderinsan•18h ago•0 comments

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

18•asim•2d ago•1 comments

Ask HN: What is the ideal email domain setup?

6•bix6•2d ago•3 comments

Word42 1.0.0 Released

5•andreasrosdal•20h ago•0 comments

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

41•MontagFTB•2d ago•4 comments

Ask HN: Laptop or Desktop?

7•Gecko4072•2d ago•14 comments

Ask HN: Why don't we talk about context window size anymore?

5•rce123•1d ago•1 comments

Ask HN: How do you guys keep up with the most cost-effective AI models?

4•solomonmwalker•2d ago•5 comments

Ask HN: Why isn't there a cursor for video games development

2•JimsonYang•1d ago•5 comments

Ask HN: Are technical blogs dead?

13•quaintdev•2d ago•20 comments

Ask HN: How do you know if you have a product problem or a distribution one?

6•mustafak99•1d ago•6 comments