5,422,854 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Office to Markdown Skill

An MCP server that provides on-demand skill loading for AI coding assistants.

Installable skillMITBy modbenderUpdated Oct 31, 2026
INTENDED FOROpenClawInstall in a listed agent.

instructions.md

---
name: office-to-markdown-c83240776dc1
description: Converts PDF, DOCX, and PPTX files to Markdown format.
---

# Office to Markdown Skill

This skill allows you to convert various office document formats into Markdown.

## Supported Formats
- **PDF** (.pdf): Extracts text from PDF files.
- **Word** (.docx): Converts Word documents to Markdown, preserving basic formatting.
- **Legacy Word** (.doc): Extracts text from legacy Word files (Office 97-2003).
- **PowerPoint** (.pptx): Extracts text from PowerPoint presentations.

## Dependencies
- `pdf-parse`
- `mammoth`
- `turndown`
- `office-text-extractor`
- `word-extractor`

## Usage

To use this skill, run the `convert.js` script with the path to the file you want to convert.

```bash
node convert.js <path-to-file>
```

### Example

```bash
node convert.js ./documents/report.pdf
```

The script will generate a new file with the same name but with a `.md` extension in the same directory (e.g., `./documents/report.md`).

## Notes
- **PDF Conversion**: Extracts raw text. Formatting preservation is limited.
- **DOCX Conversion**: Uses `mammoth` to convert to HTML first, then `turndown` to Markdown. Layout preservation is generally good for simple documents.
- **PPTX Conversion**: Currently extracts text content. Slide structure might not be fully preserved in the Markdown output.

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Includes source scripts; review them before use. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.