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).