简体   繁体   中英

conversion from rtf to docx from the commandline on a Mac in Python

Does anyone know of a Python script to convert rtf to docx on a Mac?

Textutil does not properly process headers and footers, so that is not an option. I need a commandline utility because I have a large number of files in different locations to process. The textutil interface is fine... it is just mind-boggling that it doesn't handle the header (which contains important information in my documents).

A Python script is preferable.

-Joe

I don't know the exact answer to your question, but can suggest another way of doing it: Since you are doing this on OSX, why not use the built-in automator? For an example, look at http://aseriesoftubes.com/articles/how-to-batch-convert-doc-files-to-pdf-format-using-mac-osx-automator/ or https://discussions.apple.com/thread/3050596?tstart=0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM