• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert word file to html  RSS feed

 
LV Reddy
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all,
In my project I have to convert a MS word file to an html document. (.doc to .html). In MS WORD we have an option file->save as web page. I want the same thing to be done in my application using JAVA. Can anyone suggest me a solution for that? Thanx in advance.
Regards,
Venkatesh.
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Venkatesh.
I worked through the same problem a few months ago. Converting Word to HTML is not easy. The Apache project has POI, but while their Excel file functionality is useful, the Word functionality is poor and not under active development. I then turned to OpenOffice. OpenOffice generates much cleaner HTML than Word does from the same source and can export as PDF as well. The API has a steep learning curve, so be prepared to read and experiment. There's lots of examples in the API documentation and forums.
There may be other alternatives that I've overlooked, but OpenOffice works great for my requirements.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!