pdf-to-markdown
Installation
SKILL.md
PDF to Markdown Extraction
Extract text content from PDF documents and save as clean markdown.
How It Works
Claude is multimodal. Use the Read tool to visually read PDF pages and transcribe the text directly.
Workflow
- Check PDF size - Count pages using
pdfinfo <file>.pdf | grep Pages - Split if large (10+ pages) - Use qpdf to split into 4-page chunks
- Extract text - For small PDFs: read directly. For large PDFs: process chunks in parallel using Task agents
- Merge results - Combine extracted text in page order
- Format as markdown - Apply appropriate heading levels, lists, and formatting
- Review for errors - Check grammar/spelling, fix obvious OCR-style typos
- Save output - Write markdown file next to original PDF with same base name
- Cleanup - Remove temporary chunk files