linux - 从linux命令行创建word doc文件

标签 linux command-line ms-word openoffice.org doc

我有一些 HTML 文件需要以 MS Word 文档格式分发(不要问!)。我可以在 OpenOffice 中手动打开每个文件,然后另存为 doc 文件。但我有很多文件,所以我想自动执行此操作。你知道一个方法吗?

最佳答案

尚未测试,但有 pyuno访问 OpenOffice API 的包和以下程序展示了一些这样做的方法。

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

关于linux - 从linux命令行创建word doc文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1921121/

相关文章:

linux - 在文件中的变量完全匹配后打印第二列值

c - 我如何模拟缺少文件描述符?

java - 运行exec-maven-plugin java时如何获取 "[DEBUG] Executing command line:"

python - 改进的 IDE'ish Python 命令行包括代码完成?

python - pip 未安装 Scrapy 命令行工具

cocoa - 在 Cocoa 中导出到 MS Word?

c - 我的第一个 C 语言代码卡住了,我无法创建可执行文件?

javascript - 陷入平均堆栈

vba - 在 Word 中自动将 .doc 转换为 .htm

C# 和 MS Word,range.font.bold 不起作用