Skip to content
Back to skills

Convert Documents To Markdown

ASecurity

Convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF files to Markdown with firecrawl-anydoc.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
ai-agentspythonshell

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add raffaelefarinaro/ciaobot --skill convert-documents-to-markdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert Documents To Markdown?

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

Security grade badge for Convert Documents To Markdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/raffaelefarinaro-convert-documents-to-markdown/badge)](https://www.skillsdirectory.com/skills/raffaelefarinaro-convert-documents-to-markdown)

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: convert-documents-to-markdown
description: Convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF files to Markdown with firecrawl-anydoc.
---

# Convert Documents to Markdown

Use the local Python binding, not a shell converter:

```python
import anydoc
markdown = anydoc.to_markdown("report.docx")
markdown = anydoc.to_markdown_bytes(data)
```

For CSV, whose bytes have no reliable signature, use
`anydoc.to_markdown_bytes(data, "csv")`. The result may be `str` or UTF-8
bytes. Keep the original when it already exists and write a `.md` companion.

Supported extensions are `.doc`, `.docx`, `.docm`, `.ppt`, `.pps`, `.pot`,
`.pptx`, `.pptm`, `.ppsx`, `.ppsm`, `.xls`, `.xlsx`, `.xlsm`, `.xlsb`, `.odt`,
`.ods`, `.odp`, `.rtf`, `.epub`, `.csv`, and `.pdf`. Output preserves headings,
formatting, lists, tables, links, notes, LaTeX equations, and useful asset alt
text.

Respect Ciaobot's 50 MB per-file cap. Large documents must use a bounded
temp-file/worker flow and must not be read unboundedly; report anydoc's
`ResourceLimit` clearly rather than retaining a temporary source. Do not split
documents blindly because page, table, and heading structure can be lost.

Text PDFs convert locally. Scanned/image-only PDFs raise `NeedsOcr`; never claim
that output is complete. With explicit user authorization and configured
credentials, hosted OCR is available:

```python
markdown = anydoc.to_markdown("scan.pdf", ocr="hosted")
```

This sends the whole document to Firecrawl Parse. Otherwise preserve the source
and explain that OCR is required. `Unsupported`, `Malformed`, `Encrypted`,
`MissingPart`, I/O, and other conversion errors are non-fatal in batch work:
identify the filename and continue.

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.

Comments

Loading comments…