我有一些 HTML 文件需要以 MS Word 文档格式分发(不要问!)。我可以在 OpenOffice 中手动打开每个文件,然后另存为 doc 文件。但我有很多文件,所以我想自动执行此操作。你知道一个方法吗?
最佳答案
尚未测试,但有 pyuno访问 OpenOffice API 的包和以下程序展示了一些这样做的方法。
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).
关于linux - 从linux命令行创建word doc文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1921121/