• Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert Word Documents as HTML  RSS feed

 
Srinivasan Radhakrishnan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My application has an option of uploading word documents and pdf documents, where in these documents are stored in a central repository. The users can dowload the documents and view the documents. For instance for viewing a word document we are setting the response contenttype as application/msword. I need to provide a way where in like google to show the document as HTML. Can you please help me in rendering the Word document as HTML Page.

Thanks in advance.

Srini

[ December 22, 2004: Message edited by: Srinivasan Radhakrishnan ]
[ December 22, 2004: Message edited by: Srinivasan Radhakrishnan ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one way, but it includes doing some MS stuff outside of Java.

Word has its own object model which through Com or OLE, you can start up the WOrd application, open the document and the save as html, just as if you were doing it manually through MS Word. Then all you need to do is get that file and display it.

This might require a Java to Com bridge, which a company like JIntegra has such a product. .Net might also have a way to connect to Java too.

Now I thought that in most browsers, word documents can be displayed. Why would you want to change it to HTML?

Mark
 
Dave Wood
bronco
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have personal experience with this product, but you might check out:

HTML Transit
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!