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?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
Havn't tested but there is pyuno package to access OpenOffice API and following program show some ways to do like that.
ooextract.py
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.