frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•7mo 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•7mo 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•7mo ago
give https://pg.llmwhisperer.unstract.com/ a try

Ask HN: What did you read in 2025?

206•kwar13•18h ago•289 comments

2026 resolution: if Mozilla tampers with "uBlock Origin", I'm giving it up

3•fl4tul4•45m ago•1 comments

Ask HN: What was the hardest bug you tracked down in 2025?

2•varshith17•1h ago•2 comments

Ask HN: What skills do you want to develop or improve in 2026?

213•meridion•1d ago•346 comments

Tell HN: I am afraid AI will take my job at some point

4•funnyfoobar•3h ago•10 comments

Tell HN: Merry Christmas

1941•basilikum•2d ago•424 comments

Postgres for everything, does it work?

4•saisrirampur•5h ago•1 comments

Ask HN: What are the best engineering blogs with real-world depth?

453•nishilpatel•3d ago•134 comments

Ask HN: Is Dart a particularly optimised language for front-end development?

4•theanonymousone•12h ago•3 comments

Ask HN: Pivot from SWE to What?

46•aupra•1d ago•38 comments

Are you verifying that products are readable by AI shopping

2•David_0101•13h ago•0 comments

Tell HN: Merry Christmas

91•franze•2d ago•56 comments

Ask HN: What is the international distribution/statistics of HN visitors?

59•KellyCriterion•1d ago•25 comments

Ask HN: How many HN'ers Celebrate Christmas vs. ?

18•gist•2d ago•31 comments

Looking for Decent Conversation?

101•kmstout•2d ago•13 comments

Ask HN: Why isn't there competition to LinkedIn yet?

57•antfie•4d ago•57 comments

Ask HN: Good uses cases for Fabrice's microquickjs

14•fud101•2d ago•5 comments

Stronk.app – open-source gym lifts journal

63•apatheticonion•3d ago•29 comments

Ask HN: At 34, can I aspire to being more than a JavaScript widget engineer?

26•yesitcan•2d ago•21 comments

Ask HN: People who tried both, how does Waymo compare to Tesla Robotaxi?

5•Austin_Conlon•9h ago•1 comments

Google Cloud Run cost me $4,676 in 6 weeks with zero traff

49•creativesage•2d ago•30 comments

Ask HN: My mother was scammed out of all her savings. What should I do?

132•scapbi•4d ago•66 comments

Ask HN: What developer tool do you wish existed in 2026?

22•allenleee•5d ago•20 comments

Ask HN: Oberon et al., vs. Rust

17•mikethe•4d ago•30 comments

Ask HN: What do you consider fun?

22•IndySun•1d ago•13 comments

Ask HN: Why Do You Blog?

20•onesandofgrain•1d ago•11 comments

Are students replacing laptops with iPads in 2026?

4•xthe•1d ago•6 comments

Ask HN: What's the best lecture or talk you've seen in 2025?

23•hopefully_can•1d ago•2 comments

Tell HN: Merry Christmas

19•teruakohatu•3d ago•4 comments

Tell HN: Math academy and iPad and sleep issues solved = me learning math

5•mettamage•1d ago•5 comments