/convert-to-md:convert-pdf-to-mdfrom convert-to-md
Converts PDF documents to Markdown using a bundled Python script, enabling reading, summarizing, searching, extracting, comparing, or analyzing reports, papers, invoices, forms, contracts, and scanned documents.
Ships in convert-to-md. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Converts .pdf documents into Markdown folders with extracted embedded images, then reads the Markdown output to perform the requested analysis instead of attempting unreliable direct PDF parsing.
.pdf only; MarkItDown has no legacy PDF-family format equivalent to .doc or .xls.references/setup.md to ensure Python, pip, markitdown, and pymupdf are installed.scripts/convert_pdf_to_md.py..md files to perform the requested analysis.ask_user or the host's confirmation mechanism to obtain the full absolute path before conversion..pdf, .docx, and .xlsx files, invoke convert-pdf-to-md, convert-word-to-md, and convert-excel-to-md so no supported type is skipped.scripts/convert_pdf_to_md.py on the file or folder.--recursive only when subfolders should be included.## Extracted Images appendix before answering.python scripts\convert_pdf_to_md.py "C:\path\to\document.pdf"
python scripts\convert_pdf_to_md.py "C:\path\to\document.pdf" -o "C:\path\to\output_folder"
python scripts\convert_pdf_to_md.py "C:\path\to\folder"
python scripts\convert_pdf_to_md.py "C:\path\to\folder" --recursive
python scripts\convert_pdf_to_md.py "C:\path\to\folder" --recursive -o "C:\path\to\output_parent"
Use -o only when the user explicitly says where to save output, such as C:\output or D:\work. Do not choose -o based on the agent current working directory, session state folder, or implied location.
| Feature | Behavior |
|---|---|
| Document output | A <name>/ folder is created next to the source .pdf by default. |
| Markdown file | <name>/<name>.md contains text and tables extracted by MarkItDown. |
| Images | Real embedded images are extracted via PyMuPDF into <name>/img/. |
| Image filenames | page001_img001.<ext>, page002_img001.<ext>, and so on. |
| Image placement | Because MarkItDown PDF text has no reliable per-page markers, images are appended under ## Extracted Images with ### Page N headings. |
| No images | No img/ folder or Extracted Images section is created. |
| Scanned PDFs | MarkItDown does not perform OCR; scanned/image-only PDFs may produce empty or near-empty Markdown. |
| Batch mode | Each .pdf gets its own <name>/ output folder; with -o, generated folders are collected under the output parent and subfolder structure is preserved with --recursive. |
| Non-PDF files | Folder conversion intentionally skips non-.pdf files and reports NOTE: skipped N non-.pdf file(s). |
| Symptom | Likely cause | Resolution |
|---|---|---|
ModuleNotFoundError: No module named 'markitdown' or 'fitz' / exit code 2 | MarkItDown or PyMuPDF is not installed. | Follow references/setup.md. |
ERROR: Unsupported file type '...' / exit code 3 | Input is not a .pdf file. | Ask for the correct file or use the .doc, .docx, or .xlsx sibling skill as appropriate. |
ERROR: Input path not found / exit code 3 | Wrong path or moved file. | Confirm the correct absolute path with the user. |
FAILED <file> -> ... in batch output | That PDF is corrupt, password-protected, or unreadable. | Report failed files; other batch files may still succeed. |
NOTE: skipped N non-.pdf file(s) | Folder contains non-PDF files. | Expected for this skill; invoke sibling skills for .docx and .xlsx. |
| Markdown body is empty or near-empty despite images being extracted | The PDF is scanned/image-only with no embedded text layer. | Tell the user OCR is not supported; extracted page images are still available to view. |
| Images appear in an appendix instead of inline with text | PDF text lacks reliable placement anchors. | Expected; cross-reference ### Page N with surrounding context when needed. |
references/setup.md: Python, pip, MarkItDown, and PyMuPDF setup.scripts/convert_pdf_to_md.py: deterministic PDF-to-Markdown conversion with embedded image extraction.scripts/requirements.txt: Python package requirements for the script.| Name | Type | Use it when |
|---|---|---|
convert-word-to-md | skill | The input set contains .docx files. |
convert-excel-to-md | skill | The input set contains .xlsx files. |
IMPORTANT: the agent MUST convert before analysis because PDF is a layout/print format. Output is self-contained in <name>\, such as document\, document.md, and document\img\. Batch output can use -o "C:\path\to\output_parent" only when the user explicitly requests it.
### PDF to Markdown conversion result
**Status:** converted | partially converted | blocked
**Input:** `<file or folder>`
**Output:** `<name>/` or `<output_parent>/<name>/`
**Recursive:** yes | no
| PDF | Markdown output | Images extracted | Notes |
| --- | --- | --- | --- |
| `<document.pdf>` | `<name>/<name>.md` | `<count or none>` | `<success, skipped, or failure reason>` |
**Next analysis performed**
- <summary, extraction, comparison, or user-requested analysis>
**Validation**
- `python scripts\convert_pdf_to_md.py ...`: pass | fail
scripts/convert_pdf_to_md.py was used before analysis.ask_user or equivalent.-o..pdf, .docx, and .xlsx sets invoked the sibling converters..md files and the ## Extracted Images appendix were considered before answering.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin convert-to-md3 skills in this plugin
/convert-excel-to-mdConvert Excel .xlsx workbooks to Markdown with the bundled script so spreadsheet contents can be read, summarized, searched, extracted, compared, charted, or analyzed. Use whenever the user references a spreadsheet, workbook, budget, export, tracker, .xlsx file, or a folder of workbooks; invoke sibling converters for mixed .pdf, .docx, and .xlsx sets./convert-word-to-mdConvert Word .docx documents into Markdown with extracted images using the bundled script. Use this skill when a user asks to read, summarize, review, compare, analyze, extract data from, or batch-process Word documents, resumes, reports, contracts, or proposals, including mixed folders that also require sibling PDF or Excel conversion skills.Other plugins' skills for the same job