Is there any open source library for rendering doc, xls, ppt and pdf to html code?
I would 开发者_如何学Clike to write a "quick look" feature for my web application, that allow user "view" these kind of document on the web page, how can I do so? Thank you.
You could use OpenOffice which can open all of those formats. OpenOffice can also be used to convert a document to HTML. All that can be done through a Java API on the server (no GUI required).
I do not know how good the generated HTML is though, but it might be worth trying.
For PDF you will need an OpenOffice plugin that enables OpenOffice to open PDFs (for editing).
Check out the Crocodoc API. Crocodoc provides an HTML5 viewer (no Flash!) which you can embed in your web pages. It's free for non-commercial use.
精彩评论