pdf-to-md

Installation
SKILL.md

pdf-to-md

pdf-to-md converts PDFs to markdown: text layer via pdf.js, OCR (tesseract.js) fallback for image-only or sparse pages. Its contract: recognized text is never silently dropped, unrecoverable structure is marked (> [review: ...]) rather than guessed, and every claim the output makes is mechanically checkable. This skill is the QA loop that contract is built for — convert, read the report, verify against the real page, re-extract, audit.

1. Convert

pdf-to-md file.pdf --json

Auto-detects the OCR need (falls back when the text layer is too sparse) and prints the QA report alongside the markdown. --ocr forces the OCR path; --no-ocr suppresses the fallback and keeps the sparse text-layer output. --pages N[-M] limits to a page range; --stdout writes markdown to stdout instead of a file.

Installs
1
First Seen
Sep 12, 2026