views:

100

answers:

2

I know there are some Java libraries to create PDF files and the likes, but does anybody know of a Java library to convert various file formats to HTML, especially PDF and MS Word files?

The purpose of this is to display a file preview in the web browser.

Thanks in advance!

+1  A: 

You can find a collection of PDF libraries(and more) at java-source.net. I would recommend iText.

adrian.tarau
+1  A: 

Apache POI allows programmatic access to the Office documents and in particular their conversion to HTML.

jp