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: Is anyone experimenting with different ways of using LLMs for coding?

198•yehiaabdelm•3d ago•197 comments

Ask HN: Why about a third of the submissions become dead in mere minutes?

9•g-b-r•12h ago•29 comments

Ask HN: Who is hiring? (July 2026)

243•whoishiring•4d ago•332 comments

Ask HN: How are you staying productive using LLMs?

3•thallavajhula•12h ago•3 comments

Ask HN: What do you do with the user guide of the universe?

2•KenographerPrim•13h ago•14 comments

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

150•whoishiring•4d ago•469 comments

Ask HN: How to get a non-technical friend into tech?

5•yesitcan•14h ago•6 comments

Ask HN: Since when does Craigslist's front page have emojis?

39•argee•5d ago•33 comments

LongCat-2.0

6•rika321•1d ago•0 comments

Ask HN: Would you trust encryption at the mobile keyboard layer?

3•dkatsura•15h ago•1 comments

Ask HN: Why are the upvote arrows so small?

3•guilhermeasper•16h ago•6 comments

Ask HN: What metrics do you track when building agents?

2•rstagi•17h ago•0 comments

Ask HN: How Do You "Not Write Any Code by Hand" with a Token Budget?

3•mc-0•17h ago•0 comments

Happy Independence Day

34•GauntletWizard•1d ago•8 comments

Ask HN: Good fast IDE for reading and navigating code in multiple languages

6•akkad33•1d ago•8 comments

Blog with AI Auto Poster

3•david3289•21h ago•0 comments

Tell HN: FileVault does not protect Wi-Fi passwords on macOS 26

3•turbidimeter•22h ago•1 comments

Ask HN: America turns 250 today. What does it mean to you?

12•abixb•1d ago•6 comments

Ask HN: Why are so many "AI evangelists" posting such insufferable content?

67•seattle_spring•3d ago•39 comments

I can build anything, but only the void sees it

9•urbanogt5•1d ago•22 comments

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

248•zkldi•5d ago•34 comments

Tell HN: Megalodon.jp is faster than archive.today and doesn't require reCAPTCHA

5•Cider9986•1d ago•4 comments

Tell HN: Old Reddit now requires login

87•jay_kyburz•4d ago•18 comments

How many failed startups have you launched?

18•steelebillings•2d ago•13 comments

Ask HN: How Do You Connect OpenAI Secure MCP Tunnel with Claude Desktop

3•mcpzero•1d ago•0 comments

Ask HN: What is the next step after Nora Sandler's "Writing a C compiler"?

5•xqb64•13h ago•2 comments

Where can I find or get in contact with farmers specifically in the US?

6•strapchay•2d ago•6 comments

Fable 5. Safety Taken to an Extreme

10•sergeysmirnov•2d ago•8 comments

Tell HN: Fewer PRs done with proper prompting, review, and refinement wins

7•tomerbd•2d ago•4 comments

I built a environment reloader for Windows Shells

3•byjonas•1d ago•0 comments