docmd

command
v0.134.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command docmd prints a Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) file as Markdown on standard output, with the fleet's own readers: go-ooxml/ooxml (the package into a go-richdoc document) and go-richdoc/markdown (the document into Markdown).

docmd report.docx > report.md
docmd deck.pptx
cat book.xlsx | docmd -

The format is read from the CONTENT, never the extension: the content type the package declares for its main part says whether it is WordprocessingML, PresentationML or SpreadsheetML. An encrypted package (a Compound File, which is what Office writes when a password is set), a file that is not a ZIP, and a ZIP that is not Office Open XML are refused with an error. Input is bounded by go-ooxml/opc's default limits (256 MiB of package, 384 MiB uncompressed, 8192 parts).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL