Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi all,

I have a pesudo perl related question, which is how do I bulk convert word perfect documents to text? I've tried two approaches, none of which work in all cases... One approach is to use the program "wpd2sxw", which takes a word perfect document, and converts it to an sxw file, which really is a jar and an xml description file, which, useing File::Find and a bunch of system calls, I was reasonably able to bulk convert documents to text reasonably well. The problem is, is that this method does not support earlier word perfect versions.

I then tried using Microsoft Word & Win32::OLE, File::Find, Win32::Process, Win32::Process::Info to import and export Word Perfect Documents to text. I do this by starting microsoft word via ole, open a document, copy and paste the text contents (word is strange) into a new document, save that document as text, and it seems to work fine. The problem is that I've been getting a bunch of error messages, which, when they ocurr, require special handeling. (In one case a dialogue box comes up, which you press ok, which I can't trap for, and in another case a ole exception is raised, which I can trap for...) Plus this method take a *long* time to process, so I'm looking for something better...

This has led me to yet another google search. From what I can tell, correll ships "cv.exe" and "convert.exe" which converts wpd documents to text, however, they are not available in the current word perfect installation, (or, they are not available in the install we're using...)...

So, before I start the while(1){$me->bangHeadAgainstWall();} loop, is there any better way of doing this?

Cheers, Zak


----
Zak
undef$/;$mmm="J\nutsu\nutss\nuts\nutst\nuts A\nutsn\nutso\nutst\nutsh\ +nutse\nutsr\nuts P\nutse\nutsr\nutsl\nuts H\nutsa\nutsc\nutsk\nutse\n +utsr\nuts";open($DOH,"<",\$mmm);$_=$forbbiden=<$DOH>;s/\nuts//g;print +;

In reply to (Sorta OT) - Historic Wordperfect Conversion by zakzebrowski

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found