mcpField
P
pdf-to-markdown

pdf-to-markdown

github.com/pamelafoxDocuments128148 installsUpdated 8w ago
Repository

About pdf-to-markdown

A skill for converting PDFs and other supported office documents to Markdown with Microsoft's markitdown package. It covers choosing the matching dependency group and saving the output to a specified or source-based filename.

Key features

  1. 01Convert PDF to Markdown
  2. 02Convert PPTX, DOCX, and spreadsheets
  3. 03Select dependency group by file type
  4. 04Save output to chosen or derived filename

Use cases

  1. 01Extract text from a PDF
  2. 02Convert slides or office documents for parsing
  3. 03Create Markdown files for document analysis

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pamelafox/presentation-skills --skill pdf-to-markdown

After installing, type/pdf-to-markdownin Claude Code to confirm it loaded.

Details

From the project README

PDF to Markdown Conversion

This skill converts PDF files to Markdown format using Microsoft's markitdown package.

When to use

  • User asks to convert a PDF to Markdown
  • User wants to extract text content from a PDF
  • User needs to read or parse a PDF document
  • User asks to summarize or analyze a PDF file

How to use

Use uvx to run markitdown directly. Pick the dependency group matching the file type:

File typeDependency group
PDFpdf
PowerPoint (.pptx)pptx
Word (.docx)docx
Excel (.xlsx)xlsx
Excel (.xls)xls
uvx 'markitdown[pdf]' <path-to-file> -o output.md

Or install all optional dependencies at once:

uvx 'markitdown[all]' <path-to-file> -o output.md

Examples

uvx 'markitdown[pdf]' report.pdf -o report.md
uvx 'markitdown[pptx]' slides.pptx -o slides.md
uvx 'markitdown[docx]' document.docx -o document.md

Output

  • If you were asked to save the output to a specific file, save it to the requested file using -o.
  • If no output file was specified, use the source filename with a .md suffix.

Comments

Markdown supported