This may be a bit of an irrelevant and at best imaginative rant, but there is no shortage of solutions that are mediocre or near perfect for specific use cases out there to parse PDFs. This is a great addition to that. That said, over the last two years I've come across many use cases to parse PDFs and each has its own requirements (e.g., figuring out titles, removing page numbers, extracting specific sections, etc).…
Llama-Scan: Convert PDFs to Text W Local LLMs
31–40 of 86 posts
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#32I’ve been trying to convert a dense 60 page paper document to Markdown today from photos taken on my iPhone. I know this is probably not the best way to do it but it’s still been surprising to find that even the latest cloud models are struggling to process many of the pages. Lots of hallucination and “I can’t see the text” (when the photo is perfectly clear). Lots of retrying different models, switching between LLMs…
Try this: https://github.com/rednote-hilab/dots.ocr
Seems to weigh about 6GB which feels reasonable to manage locally
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#33I presume this doesn't handle handwriting. Does anyone have a suggestion for locally converting PDFs of handwriting into text, say on a recent Mac? Use case would be converting handwritten journals and daily note-taking.
Author here, I tested it with this PDF of a handwritten doc [1], and it converted both pages accurately. 1. https://github.com/pnshiralkar/text-to-handwriting/blob/mast...
FYI, your GitHub link tells me it's unable to render because the pdf is invalid.
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#34I’d just prefer that any images and diagrams are copied over, and rendered into a popular format like markdown.
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#35This may be a bit of an irrelevant and at best imaginative rant, but there is no shortage of solutions that are mediocre or near perfect for specific use cases out there to parse PDFs. This is a great addition to that. That said, over the last two years I've come across many use cases to parse PDFs and each has its own requirements (e.g., figuring out titles, removing page numbers, extracting specific sections, etc).…
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#36I presume this doesn't handle handwriting. Does anyone have a suggestion for locally converting PDFs of handwriting into text, say on a recent Mac? Use case would be converting handwritten journals and daily note-taking.
I don't know re: handwriting so only barely relevant but here is a new contender for a CLI "OCR Tool using Apple's Vision Framework API": https://github.com/riddleling/macocr which I found while searching for this recent discussion: My iPhone 8 Refuses to Die: Now It's a Solar-Powered Vision OCR Server https://news.ycombinator.com/item?id=44310944
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#37By 1990 Omnipage 3 and its successors were 'good enough' and with their compact dictionaries and letter form recognition were miracles of their time at ~300MB installed. In 2025 LLMs can 'fake it' using Trilobites of memory and Petaflops. It's funny actually, like a supercomputer being emulated in real time on a really fast Jacquard loom. By 2027 even simple hand held calculator addition will be billed in kilowatt-ho…
Trilobites? Those were truly primitve computers.
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#38By 1990 Omnipage 3 and its successors were 'good enough' and with their compact dictionaries and letter form recognition were miracles of their time at ~300MB installed. In 2025 LLMs can 'fake it' using Trilobites of memory and Petaflops. It's funny actually, like a supercomputer being emulated in real time on a really fast Jacquard loom. By 2027 even simple hand held calculator addition will be billed in kilowatt-ho…
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#39By 1990 Omnipage 3 and its successors were 'good enough' and with their compact dictionaries and letter form recognition were miracles of their time at ~300MB installed. In 2025 LLMs can 'fake it' using Trilobites of memory and Petaflops. It's funny actually, like a supercomputer being emulated in real time on a really fast Jacquard loom. By 2027 even simple hand held calculator addition will be billed in kilowatt-ho…
If you think 1990's ocr- even 2000's OCR is remotely as good as modern OCR... I`v3 g0ta bnedge to sell.
Re: Llama-Scan: Convert PDFs to Text W Local LLMs
#40For each page:
- Extract text as usual.
- Capture the whole page as an image (~200 DPI).
- Optionally extract images/graphs within the page and include them in the same LLM call.
- Optionally add a bit of context from neighboring pages.
Then wrap everything with a clear prompt (structured output + how you want graphs handled), and you’re set.
At this point, models like GPT-5-nano/mini or Gemini 2.5 Flash are cheap and strong enough to make this practical.
Yeah, it’s a bit like using a rocket launcher on a mosquito, but this is actually very easy to implement and quite flexible and powerfuL. works across almost any format, Markdown is both AI and human friendly, and surprisingly maintainable.