Page 1 of 1

Converting MS Word to HTML?

Posted: Wed Nov 14, 2007 11:41 am
by davisaggie
I am looking for a way to convert MS Word documents (.DOC files) to HTML using PHP. Ideally I would like to put the generated HTML into a MySQL database, and still preserve the formatting in the MS Word document. Is this even possible in PHP? I could not find anything that would do this in the PHP function list.


Thanks

Posted: Wed Nov 14, 2007 11:44 am
by RobertGonzalez
I think you might need a COM object interface for this, but that is seriously a stab in the dark. If you can't find anything about hitting Word docs, try googling for hitting Excel spreadsheets as the code behind it might be similar.

Posted: Wed Nov 14, 2007 12:11 pm
by feyd
There's nothing in the function list that would provide this narrow of functionality.

There are several projects available in various locations (like Sourceforge) that produce HTML from Word document files. You can also use COM as Everah has stated.