MS Word to text file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

MS Word to text file

Post by hongco »

I was wondering how they use php to convert MS Word document to other text file format.

the application is on this website:

http://www.phpwordlib.motion-bg.com/

Thanks!
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

You probably don't read C, but Antiword is an open-source program that converts MS Word to text. They might have ported the program to PHP.

That would be pretty cool, actually.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

if you have a windows server, you could use COM to grab the text and output it to pure text.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

Ambush Commander wrote:You probably don't read C, but Antiword is an open-source program that converts MS Word to text. They might have ported the program to PHP.

That would be pretty cool, actually.
Another similar project is WV, formerly known as "mswordview". Its extremely common for this sort of thing, but yes - it must be run as a CGI.

http://wvware.sourceforge.net/
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

thank you for the info! yah, I haven't read much of C.
Post Reply