Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Converting doc to txt without WIN32::OLE

by mrguy123 (Hermit)
on Jun 20, 2012 at 08:05 UTC ( [id://977250]=note: print w/replies, xml ) Need Help??


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

Hi Corion, thanks for the tip
I will try some of the modules you suggested, maybe I will get lucky :)
Open Office is also a good solution, but I need to see if there is a batch option for conversion before I go there
  • Comment on Re^2: Converting doc to txt without WIN32::OLE

Replies are listed 'Best First'.
Re^3: Converting doc to txt without WIN32::OLE
by ww (Archbishop) on Jun 20, 2012 at 11:40 UTC
    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>

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://977250]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2024-04-23 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found