pdf-to-md
Installation
SKILL.md
pdf-to-md
Turn a PDF into Markdown. The right path depends on the document type and whether external document submission has been approved:
- Scientific paper → produce the canonical
paper-to-mdbundle (Markdown +section_audit.json+article.json) so it can feedcsag-extraction. Use LiteParse v2 locally unless the user explicitly approves the remote OCR API. - Any other PDF (reports, slides, letters, forms) → just convert to Markdown with LiteParse v2 for a fast, local, no-key result. Stop there.
LiteParse must be v2 (run-llama/liteparse,
the Rust rewrite with the LiteParse Python API and lit CLI). LiteParse v1 is a
different, unsupported API. liteparse_to_md.py pins liteparse>=2,<3 and refuses
to run on anything else, so uv run always provisions the right per-platform v2
binary inside the wheel — nothing to vendor or compile, and no API key. OCR is on by
default (bundled Tesseract).