frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Has anyone had success with SBIR grants and what is the process like?

7•lyfeninja•5h ago•5 comments

Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?

1285•cloudking•2d ago•548 comments

Ask HN: What's a prompt you've written that you're genuinely proud of?

5•akashwadhwani35•1h ago•2 comments

Ask HN: Are other people seeing a spike in IT problems with businesses?

14•PaulHoule•15h ago•9 comments

I indexed 669 GB of my GoPro videos using my M1 Max computer and local ML models

434•iliashad•3d ago•114 comments

Ask HN: How are thinking efforts implemented?

102•simianwords•1w ago•31 comments

Ask HN: How have you gotten burned by coding agents?

4•baddash•3h ago•0 comments

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

310•david927•3d ago•1125 comments

Ask HN: Successful entrepreneurs and indie hackers, enlighten me

3•markosn•13h ago•5 comments

Ask HN: What Are the Trade-Offs of Working Fully Remotely?

7•karakoram•13h ago•6 comments

I'm Eric Ries, author of "The Lean Startup" and new book "Incorruptible" – AMA

806•eries•1w ago•577 comments

Ask HN: What are your best Claude hacks?

15•akashwadhwani35•1d ago•14 comments

Ask HN: Why hasn't there been a real competitor to Ticketmaster yet?

263•mdni007•1w ago•239 comments

Reviews have become expensive, rewrites have become cheap

81•_z6bq•2d ago•73 comments

Ask HN: Favorite text heavy blogs that are a joy to read?

119•joshmarinacci•1w ago•30 comments

AWS Bedrock to require sharing data with Anthropic for Mythos and future models

427•TomAnthony•1w ago•254 comments

Anthropic pauses credit change for Claude Code

35•fabianlindfors•2d ago•11 comments

Ask HN: Want to build something open source on nights and weekends together?

39•vira28•6d ago•18 comments

Notes on DeepSeek

210•vinhnx•1w ago•141 comments

Ask HN: Would it be useful to have a slop button in addition to flag?

41•BugsJustFindMe•1w ago•23 comments

Ask HN: Are most corporate SWE jobs performative?

249•hnthrow10282910•1w ago•283 comments

Ask HN: How do you stay at the bleeding edge of AI tooling?

7•otekengineering•1d ago•12 comments

Ask HN: What are tools you have made for yourself since the advent of AI?

444•aryamaan•1w ago•780 comments

Nanogram – Private social media from your Raspberry Pi

9•smalltorch•1d ago•3 comments

UK government built an AI tool to digitise historic planning records

2•brokebroadbeat•11h ago•0 comments

Ask HN: Would you want to know when and how you die?

8•JohnDSDev•1d ago•25 comments

Newer macOS runs slower on Intel (undeniably) – on purpose or "accident"?

15•srevenant•2d ago•16 comments

Ask HN: How do you get into a flow state when using AI to code?

98•kilroy123•6d ago•122 comments

Ask HN: What is the meaning of life? Why are we here?

6•chistev•9h ago•13 comments

Ask HN: Are you still using a Vision Pro?

171•y1n0•1w ago•215 comments
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