in reply to docx to txt
I just noticed you wrote docx2txt "could be a starting point, but I am having some difficulties to figure out how to integrate it into my application."
It seems pretty straightforwared to me, but here's what I did in case you need it: I just kept docx2txt in a separate file out of laziness and just used
Now, my app needs to run on both *nix and Windows, and Windows compatibility required quite a bit of trickery. I modified the .pl slightly, bundled an unzip program with my application and wrote some code that generates a .config for docx2txt at runtime, to let docx2txt know where unzip.exe is. It's not what I would call elegant, but it works. If you need this to run on Windows computers other than your own, I can paste the code here.
It seems pretty straightforwared to me, but here's what I did in case you need it: I just kept docx2txt in a separate file out of laziness and just used
system ("perl \"$pathtodocx/docx2txt.pl\" \"${infile}.doc\" \"${outfil +e}.txt\"");
Now, my app needs to run on both *nix and Windows, and Windows compatibility required quite a bit of trickery. I modified the .pl slightly, bundled an unzip program with my application and wrote some code that generates a .config for docx2txt at runtime, to let docx2txt know where unzip.exe is. It's not what I would call elegant, but it works. If you need this to run on Windows computers other than your own, I can paste the code here.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: docx to txt
by Anonymous Monk on Jan 10, 2011 at 12:06 UTC | |
Re^2: docx to txt
by welle (Beadle) on Jan 14, 2011 at 21:57 UTC | |
by elef (Friar) on Jan 19, 2011 at 20:12 UTC |
In Section
Seekers of Perl Wisdom