in reply to Re^2: Converting doc to txt without WIN32::OLE
in thread Converting doc to txt without WIN32::OLE

You don't really need a "batch option" with OO/LO; just write your script, allowing it to accept (@ARGV or a list in a file) multiple docs which names/fullpaths it then feeds to OO.

UPDATE: PS. You can write offsite links here as "[http://www.foo/bar.htm]" and, for PM nodes, as "[id://977242]." In the latter case, that's especially preferred, so you don't inadvertently logout a reader following your node on say, PM.org by a link to PM.com.

See also Markup in the Monastery for less expensive (keystroke-wise) ways a marking paras. </update>

  • Comment on Re^3: Converting doc to txt without WIN32::OLE

Replies are listed 'Best First'.
Re^4: Converting doc to txt without WIN32::OLE
by Corion (Patriarch) on Jun 20, 2012 at 11:43 UTC

    It would be nice if OpenOffice then also knew what to do with the documents, and did so automatically.

    I seem to remember a command line version of OpenOffice that did just these format conversions, but I can't find it because it either doesn't exist or I'm missing the appropriate search terms.

    Update: Ah hah - you can launch (some versions of) OpenOffice in "headless" mode and then talk to it via Win32::OLE or TCP, at least according to this random Google result. This would be the approach I would pursue.