create word doc file from linux command line

喜欢而已 提交于 2019-12-02 03:25:06

Havn't tested but there is pyuno package to access OpenOffice API and following program show some ways to do like that.

ooextract.py

A command line tool, that extracts the text, html or pdf content from a StarWriter document and writes it to a different file or (optionally) prints it to stdout (grep your office documents).

Abiword can convert files from the command line.

I haven't personally tried it to convert HTML to DOC, but since it supports both those formats, it seems like it's worth a try.

Also, would RTF be good enough? There are lots of converters for HTML->RTF.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!