Page 1 of 1

Displaying the contents of MS Word Document on to the web

PostPosted: 29. September 2008 19:12
by bogasrikanth
Hi Friends,

I am having a word document with lot of formatting and images. I would like to display this content on the web so that it can serve as a user manual for the users.

Please tell me the way to read in this content and display on the web page. Looking forward your valuable help.

Thanks
sreekanth

PostPosted: 29. September 2008 20:34
by Dave_L
I would convert it to a .pdf. I'm not sure if MS Word can do that, but I know that OpenOffice can.

PostPosted: 29. September 2008 22:01
by bogasrikanth
Hi,

Thanks for the reply.

I want to do this from PHP. Can we do it ?

Srikanth

PostPosted: 29. September 2008 22:57
by Dave_L
Well, MS Word can export a document as a web page (.html files and auxiliary files), although some formatting might be lost. You could link to that page from a PHP-generated page.

Personally, I prefer the .pdf option. That way, users can download the manual for offline viewing as well as view it online.

PostPosted: 29. September 2008 23:15
by bogasrikanth
Hi Dave,

I dont want the user manual to be downloaded by the users ;-).

I wanted to generate these pages dynamically. I have written the user manual in word document, this can be easily converted in to pdf.

Here is a scenario:

A user wanted to view the usage of a method X. Then he clicks the hyper link for the method X. My PHP script running at the server should then get the pdf document for that method read it and send it back to the user viewing it. I hope you got my requirement now. :-)

How can I do it ? Please paste the code for that, if you have any.

Thanks
srikanth

PostPosted: 29. September 2008 23:16
by glitzi85
And why not directly export it as HTML? Word has this function (although the result is very ugly).

Edit: This will not prevent the user from printing your webpage into an PDF!

glitzi

PostPosted: 29. September 2008 23:31
by bogasrikanth
Ya... it looks very very bad, when I am saving it as a web page.


One more doubt. Can I refer to this web page in my <a href> tag ?


srikanth