Welcome to WebmasterWorld Guest from 54.166.189.88

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Need code to convert word doc to html

     
6:18 pm on Aug 31, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 7, 2008
posts: 93
votes: 0


Hello,

I need a php code which can take a word doc and convert it in html on the fly.

I searched Google a lot found several scripts which convert word doc to html easily but do not retain the word formatting in html. so I need something which can take the formatting also.

Any help would be highly appreciated.

Regards
Ali

1:36 pm on Sept 2, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15756
votes: 0


no clue, you'd have to keep looking

phpclasses or hotscripts might have one

6:10 pm on Sept 2, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 7, 2008
posts: 93
votes: 0


well, finally I got a class from the above site, and it worked fine on my windows OS which has MS word installed. But it doesn't work with Linux server.

Thanks, I will be looking.

Ali

8:04 am on Sept 5, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Feb 4, 2004
posts:215
votes: 0


abiword can convert MS Word files to html on the command line. The syntax is
abiword your_word_file.doc -to=newfile.html

if you have abiword on your linux system and you have write permission for the output directory, you should be able to wrap the abiword command in either the exec() or system() function.

8:37 am on Sept 5, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 7, 2008
posts:93
votes: 0


Thanks for your info. I will check for that component on my server.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members