473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Re: Converting .doc to .txt in Linux

On 04Sep2008 12:54, pa***********@gmail.com <pa***********@gmail.comwrote:
| I had previously asked a similar question,
| http://groups.google.com/group/comp....c901da63d8d059
|
| but at that point I was using Windows and now I am using Linux.
| Basically, I have some .doc files that I need to convert into txt
| files encoded in utf-8. However, win32com.client doesn't work in
| Linux.

I use the "antiword" or "catdoc" commands to convert .doc to text.
Call them from popen or subprocess from Python, if you must use Python
(I'd just write a shell script for such a task myself unless its embedded
in a larger python context).

Cheers,
--
Cameron Simpson <cs@zip.com.auDoD#743
http://www.cskk.ezoshosting.com/cs/

Please do not send me Microsoft Word files.
http://en.nothingisreal.com/wiki/Please_don't_send_me_Microsoft_Word_documents
Sep 5 '08 #1
0 943

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Keith S. | last post by:
Hi Folks, When converting a double to an int, the result is not as I'd expect on Linux: #include <stdio.h> int main(int argc, char **argv) { double val = 0.24;
26
by: Simon | last post by:
I'm doing a survey. When do you think GNU/Linux will be ready for the average Joe? What obstacles must it overcome first?
8
by: Fan of P2P | last post by:
FYI - www.realbasic.com They have written a development IDE that enables you to write apps using a language and environment VERY similar to VB. BUT, the best thing is, when you compile the...
17
by: Jim Strickland | last post by:
We currently are running a data intensive web service on a Mac using 4D. The developers of our site are looking at converting this web service to PostgreSQL. We will have a backup of our three...
0
by: Bruce D. Meyer | last post by:
I am going to convert a series of cronjob perl / expect scripts running on an old linux box to run on a Windows Server. (2003) These scripts currently call the M.I.T. download executable of pgp...
0
by: goncoloz | last post by:
can you help me about this subject. i have a problem, which i have files in frm format on linux mysql server and i want to read this files on windows what can i do for this problem please help me...
2
by: responsible | last post by:
Hi, I am trying to convert a small piece of source code that was initially written for Linux to build under Windows. My main problem though is in two lines... 1. signal(SIGALRM,...
0
by: clinnebur | last post by:
We have an ASP.NET web application (C#) that copies videos from a CCTV truck to a Linux server. What I am trying to do is convert the .AVI videos(which is how they are created on the truck) to .WMV...
5
by: yakir22 | last post by:
Hello experts, I am dealing now in porting our server from windows to linux. our client is running only on windows machine. to avoid the wchar_t size problem ( in windows its 2 bytes and linux is...
3
by: patrick.waldo | last post by:
Hi Everyone, I had previously asked a similar question,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.