8
1
I'm trying to build a bash script in Cygwin that will convert HTML files to RTF. In OS X this is trivial with textutils, but that doesn't exist for regular Linux or Cygwin. Instead I'm trying to use OpenOffice from the command line.
I've read elsewhere that OpenOffice can run headlessly with a program normally installed as /usr/bin/ooffice, but in Cygwin under Windows this obviously doesn't work—the OpenOffice installer doesn't built native Cygwin symlinks and might not even install the Windows equivalent of ooffice.
How can I use OpenOffice from the command line in Cygwin to convert HTML files to RTF files?
@Andrew I hope you find it useful, but it's not exactly new. The project's git repository dates back to 2007, and that was an import from some over version control system that they migrated from.
– Caleb – 2012-09-24T07:31:00.200Hmm. I missed that when looking. I assumed that it was new since it mentioned working with zero configuration on OS X on LO 3.6.x, which just came out recently. Regardless, it's awesome :) – Andrew – 2012-09-25T02:52:40.517