从linux命令行创建word doc文件 [英] create word doc file from linux command line

查看:225
本文介绍了从linux命令行创建word doc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以MS Word doc格式分发一些HTML文件(不要问!).我可以在OpenOffice中手动打开每个文件,然后另存为doc文件.但是我有很多文件,所以我想使它自动化.你知道吗

I have some HTML files that I need to distribute in MS Word doc format (don't ask!). I can manually open each in OpenOffice and then save as a doc file. But I have quite a few files so I want to automate this. Do you know a way?

推荐答案

未经测试,但是有 pyuno 程序包以访问OpenOffice API,以下程序显示了实现此目的的一些方法.

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

ooextract.py

一个命令行工具,可提取 文字,html或pdf内容 StarWriter文档并将其写入到 不同的文件或(可选)打印 它到stdout(grep您的办公室 文档).

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命令行创建word doc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆