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?

108•tosmatos•2d ago•65 comments

Ask HN: Who is using MCP in production?

168•sukit•1d ago•186 comments

Opinion: Religion Lowers Individual Morality

4•ReligionKills•1h ago•1 comments

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

393•halcdev•1d ago•688 comments

Are you good at spotting fake news?

5•azermite•2h ago•0 comments

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

6•UnderABlueMoon•2h ago•4 comments

Ask HN: Books Recommendations?

3•washelterskelte•4h ago•5 comments

Ask HN: Initial Thoughts on GPT-6 Astra?

7•zof3•7h ago•3 comments

Ask HN: Who is hiring? (September 2026)

247•whoishiring•3d ago•337 comments

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

17•fastest963•1d ago•1 comments

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

68•Animats•1d ago•21 comments

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

110•whoishiring•3d ago•455 comments

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

2•JimsonYang•8h ago•4 comments

Xfinity silently blocks lots of new domains

13•dschwartz18•12h ago•3 comments

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

28•throwaway_30yo•2d ago•24 comments

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

4•mustafak99•10h ago•4 comments

Ask HN: Who is using FPGA for ML inference?

10•softwarewright•1d ago•14 comments

Ask HN: What is your biggest career regret?

6•eudamoniac•6h ago•3 comments

Ask HN: What is the ideal email domain setup?

6•bix6•1d ago•3 comments

Ask HN: What's Going on with Web.archive.org

4•1vuio0pswjnm7•7h ago•1 comments

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

18•asim•1d ago•1 comments

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

40•MontagFTB•1d ago•4 comments

Is there any way to contribute to nitter and xcancel's legal fights?

8•orange999•13h ago•1 comments

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

3•rce123•15h ago•2 comments

Tell HN: Check your Claude settings, it may have silently enabled remote access

6•cromka•15h ago•5 comments

Ask HN: Laptop or Desktop?

7•Gecko4072•1d ago•11 comments

Ask HN: Do all of you use Cloudflare for preventing DDoS, Bot and more attacks?

2•skwasimin•16h ago•4 comments

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

4•solomonmwalker•1d ago•4 comments

Ask HN: Does anyone have access to GPT-6 Astra yet?

7•zof3•12h ago•5 comments

Ask HN: Are technical blogs dead?

12•quaintdev•1d ago•20 comments