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: What are you working on? (September 2026)

338•david927•1d ago•1051 comments

Tell HN: iOS 27 does not allow Apple Intelligence to be disabled

66•nunez•14h ago•16 comments

Ask HN: Are 80s high school hobby programmers overwhelmingly pro-AI?

14•amichail•22h ago•33 comments

YouTube has banned Dmitry "Savromat" Chernyshevsky

4•eimrine•3h ago•0 comments

Ask HN: How are you managing aging relatives passwords?

7•rylando•19h ago•13 comments

Ask HN: What would make you trust an AI's assessment of your understanding?

3•Aditya_0315•19h ago•2 comments

Ask HN: Would a startup for young creatives who reject AI be feasible?

10•mondobe•1d ago•21 comments

Ask HN: What would make self-hosting easy enough for average consumers?

5•dani4299•19h ago•7 comments

Ask HN: Developers – Do you let agents write production code?

6•smurf9852•20h ago•10 comments

Has anyone made a legacy codebase more legible to AI coding agents?

2•iacobandrei•20h ago•2 comments

A repo gained 3,278 stars while GitHub showed Andrej Karpathy as a contributor

4•newshackee•21h ago•2 comments

Tell HN: Screenshots on macOS don't have to be date named files with spaces

5•cs1996•21h ago•5 comments

Ask HN: What default model do you use and why?

61•stikit•2d ago•102 comments

Ask HN: Should we start airgapping our personal devices?

8•emerongi•2d ago•6 comments

Ask HN: Is there an emerging pattern for NEGATIVESKILLS.md files?

5•mehmetoguzderin•1d ago•2 comments

Tell HN: OpenAI keeps re-enabling the 'allow training' setting

484•jacquesm•4d ago•188 comments

Ask HN: Did Google kill its enterprise workhorse model?

26•waldrews•3d ago•18 comments

DietPi released a new version v10.7

3•stephanstsdietp•1d ago•0 comments

Ask HN: What are some privacy/security tools you wish exist, but don't yet?

5•ToriTech•1d ago•8 comments

Ask HN: Can we please limit the AI news flood?

857•cromka•3d ago•398 comments

AI Boom / Bust – Boom Boom Pow

5•wwolfson97•1d ago•2 comments

Ask HN: How is AI actively a threat to humanity if it's only online?

5•CM30•1d ago•14 comments

Ask HN: Career paths to consider if I am better at supporting than creating?

29•_override•1d ago•28 comments

Ask HN: Multi-agent workflows in production; Where people using 1000s of agents?

3•ramstar3000•1d ago•6 comments

Ask HN: What would it look like if AI agents "took over the internet"?

4•scripper1•1d ago•12 comments

Ask HN: Why haven't people vibe coded popular 80s word processors as TUI apps?

5•amichail•1d ago•4 comments

Reddit Now Blocking Firefox for Android with uBlock Origin?

25•chucksmash•2d ago•6 comments

Ask HN: What's a good "semi-dumb" phone/watch for kids?

9•funkaster•3d ago•12 comments

Tell HN: Claude Code appends new commit signature even if older settings is off

8•ctxc•2d ago•2 comments

Ask HN: You have unlimited resources, what software would you build?

4•smalltorch•23h ago•5 comments