Forum Moderators: coopster

Message Too Old, No Replies

Word to HTML/text

         

smatts9

11:55 pm on Aug 22, 2009 (gmt 0)

10+ Year Member



I want to be able to take a .doc a user uploads and convert it to an html or text file. Exactly how you see it happen in GMail when you receive a .doc file and you choose to view it as HTML.

I don't need perfect formatting, they will contain just text, but will have bolded parts and different font sizes, etc.

Is this possible at all with PHP and on Linux? (I fear not.)

jatar_k

1:26 pm on Aug 25, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It is possible, most things are, I am not 100% sure how it's done. if you view a word file they are pretty nasty and there would be a lot to parse.

I would look around for someone doing the same, or I would just let them download it or IE embed it depending on browser.

If it's really a game breaker then you better start looking through the actual format of a word doc and see if you can do some basic transforms.

smatts9

1:32 pm on Aug 25, 2009 (gmt 0)

10+ Year Member



Right now I convert the word docs to PDFs, but it takes a while to go through several PDFs back to back to back when they want to scan through them quickly. And I was surfing around to find a solution, something similar to GMails view in HTML.

I have looked at the doc files and they are quite nasty. To parse that would be hell.

I'll continue to look around for solutions.