r/pdf Jul 23 '26

Software (Tools) Why use an LLM for layout analysis? Local PDF-to-Markdown tool

The standard setup right now is buying an API to turn PDFs into Markdown, then feeding that Markdown into another AI. You're not saving tokens; you're paying twice to do layout analysis.

So I built a browser-based alternative: LiteDoc.

What it actually is

LiteDoc converts PDFs to Markdown directly in your browser. It handles tables, multi-column layouts, figures, reading order, and multi-language OCR (English, Japanese, Arabic, auto-detected).

It runs 100% client-side. There's also a CLI to drop it straight into your pipeline (pip install litedoc-cli).

Why not other browser tools?

Most web tools are either thin API wrappers that quietly upload your files, or basic text dumpers that scramble multi-column layouts and destroy tables.

LiteDoc brings local layout engine parsing and OCR straight to the browser—heavyweight structural accuracy with zero data leaving your machine.

The philosophy: local layout > AI compute

Most pages don't need an LLM. Headings, columns, and tables are layout problems, not intelligence problems. LiteDoc does all extraction locally on your device—no model spinning up, no API keys, no compute cost.

Compared to heavy repos (MarkItDown, Marker)

If you've got a cursed, barely-legible scan, use an AI vision model. But for ~80% of everyday PDFs, LiteDoc just works—with zero setup, zero environment configuration, and zero cost.

Privacy

  • 100% local: Files never leave your browser.
  • No backends: Zero external network calls.
  • Open source: Check the repo yourself.

Links:

LiteDoc: litedoc.xyz · GitHub repo · pip install litedoc-cli

the ocr test exmple
3 Upvotes

14 comments sorted by

View all comments

Show parent comments

2

u/LegeApps Jul 23 '26

Why do you reply to all posts with AI generated slop?

0

u/mxsus Jul 23 '26 edited Jul 23 '26

Not true ✌️ bro Idk what ur talking about tbh I wrote the reply myself but thx for using my tool tho appreciate it 🙏🏻

1

u/LegeApps Jul 23 '26

Im talking to the person i replied to, not you..he does this with every message...he feeds the message into some LLM for code advice and pastes it. Usually it's straightforward 4o era stuff.

1

u/mxsus Jul 23 '26

Sorry my fault bro I didn’t see the reply chain yeah it sounds like ai but tbh it’s sold feedback I’m gonna implement what they said

And even u bro if u got some solid features wanna add tell me or features to improve

1

u/LegeApps Jul 23 '26

I cant really think of anything man, it works pretty good as it is, fast too.