convert-documents-to-markdown
This skill converts a wide range of office documents—including Word (.doc/.docx), PowerPoint (.ppt/.pptx), Excel (.xls/.xlsx), OpenDocument (.odt/.ods/.odp), RTF, EPUB, CSV, and PDF—into GitHub-Flavored Markdown using a single CLI command. It can read from stdin or write to a file, and it automatically detects the document format. This makes it ideal for developers, writers, and data analysts who need to extract text from documents for further processing, publishing, or knowledge management. By eliminating manual copy-pasting and format conversion, this skill saves significant time, reduces errors, and allows users to focus on the content rather than the conversion process.
npx skills add https://github.com/firecrawl/anydoc --skill convert-documents-to-markdownBefore / After Comparison
1 组Before this skill, users had to manually open PDF or Office documents, copy the content piece by piece, adjust headings and table formatting, and then paste it into a Markdown editor. Processing a 10-page report often took over 30 minutes and was prone to omissions and errors.
This skill converts the entire document into clean, well-formatted GitHub-Flavored Markdown with a single command, completing the task in seconds. It preserves the structure, enabling users to immediately obtain clean, structured text and saving significant time while avoiding manual errors.
Convert documents to Markdown
Run the anydoc CLI. It needs Node 20+ and no install:
npx -y @firecrawl/anydoc <file> # Markdown to stdout
npx -y @firecrawl/anydoc <file> -o out.md # write to a file
npx -y @firecrawl/anydoc - --format csv < f # read stdin
Rules:
- Supported inputs:
.doc,.docx,.docm,.odt,.rtf,.epub,.pdf,.ppt,.pps,.pot,.pptx,.pptm,.ppsx,.ppsm,.odp,.xls,.xlsx,.xlsm,.xlsb,.ods,.csv. - The format is detected from the file content. Pass
--format <name>only when detection cannot work: CSV from stdin, or a missing or wrong extension. - Exit codes: 0 success, 1 the document could not be converted, 2 usage error. Failures print one
anydoc: <message>line to stderr. The CLI never prompts. - For a large document, write to a file with
-oand read the parts you need instead of streaming everything into context. - Scanned and image-only PDFs need OCR, which anydoc does not do; they fail as unsupported. The hosted Firecrawl Parse API handles those.
- Inside a Node, Python, or Rust codebase, prefer the library over shelling out:
@firecrawl/anydocon npm,firecrawl-anydocon PyPI,anydocon crates.io. Each exposes the sameto_markdown/toMarkdownAPI.
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill