frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Adding SEO fields to your Filament resources in 5 minutes

2•umun•1m ago•0 comments

Ask HN: Are systems ready for the first negative leap second?

3•Asmod4n•1h ago•3 comments

Ask HN: What cool stuff have you all been using Fable 5 for?

2•Tsarp•1h ago•1 comments

Tell HN: I managed to unsubscribe from Adobe CC without being charged

5•frereubu•1h ago•0 comments

Ask HN: I use coding agents daily, but how do real engineers use them?

2•getlawgdon•2h ago•3 comments

Opinion: Agents > Unix Shell

3•akiarie•2h ago•0 comments

Ask HN: Are there good security benchmarks for LLMs?

7•melvinroest•6h ago•0 comments

Ask HN: What should I verify before releasing a P2P messenger?

5•Realman78•3h ago•2 comments

Ask HN: Is anyone using Jujutsu version control (JJ) exclusively?

4•cabyambo•4h ago•0 comments

Ask HN: Are you emotionally attached to AI code?

3•CurleighBraces•5h ago•4 comments

Ask HN: Is anyone experimenting with different ways of using LLMs for coding?

200•yehiaabdelm•3d ago•198 comments

I built a local-first replacement for TV Time before it shuts down July 15

2•continuitytv•5h ago•1 comments

Ask HN: What internal tools/SASS replacements are you building?

2•kostarelo•6h ago•1 comments

Tools/approach to pentest my own framework/SaaS?

2•shinobi-apps•7h ago•2 comments

Ask HN: Open-source website builders for animated sites like Higgsfield?

3•adithyaharish•7h ago•0 comments

Tell HN: Error: Claude-fable-5 is temporarily unavailable

3•throwaw12•8h ago•3 comments

Claude Code deletes conversations after 30 days

2•mieubrisse•9h ago•3 comments

Ask HN: What is your go-to prompt to prove AI can be wrong?

2•throwaway_887•9h ago•3 comments

Ask HN: Do you guys struggle with finding a right person for your FDE role?

3•getelementbyiq•9h ago•0 comments

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

11•g-b-r•19h ago•29 comments

Ask HN: Who is hiring? (July 2026)

244•whoishiring•5d ago•342 comments

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

151•whoishiring•5d ago•481 comments

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

39•argee•5d ago•33 comments

Ask HN: Why are the upvote arrows so small?

4•guilhermeasper•23h ago•6 comments

Ask HN: How are you staying productive using LLMs?

5•thallavajhula•18h ago•4 comments

Happy Independence Day

36•GauntletWizard•2d ago•9 comments

LongCat-2.0

6•rika321•1d ago•0 comments

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

2•KenographerPrim•20h ago•15 comments

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

6•yesitcan•21h ago•6 comments

SW Agent – an outbound-only connector for browser-based PostgreSQL IDEs

3•Vivek-KY•8h ago•0 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