• Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i convert doc file into html file

 
Amit Yadav
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i need a code which read a doc file and convert that DOC file into HTML file.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reading Word files is general is tricky. The POI library can extract text from DOC files, which could then be used to create an HTML file.

An alternative would be to use the OpenOffice Java API to open the DOC file and save it as HTML.

The AccessingFileFormats FAQ page has links to these (and other) libraries useful for dealing with various file formats.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!