Skip to content
Back to skills

Office To Md

ASecurity

Converts PDF, DOCX, and PPTX files to Markdown format.

  • 21 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
businessgobashnode

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill office-to-md --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Office To Md?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Office To Md
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-office-to-md/badge)](https://www.skillsdirectory.com/skills/modbender-office-to-md)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Office to Markdown
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.

Files in this skill

  • SKILL.md1.3 KB
  • convert.js1.5 KB
  • openclaw-skill.js4.2 KB
  • package.json535 B
  • utils/docConverter.js517 B
  • utils/pdfConverter.js800 B
  • utils/pptConverter.js3.8 KB
  • utils/wordConverter.js713 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.