Document preview library in JavaScript/rails
Is there any开发者_Go百科 JavaScript/rails library/gem/plug-in to preview document(.doc, pdf, xls and most common doc types) on web page?
Mozilla is working on a PDF renderer written in JavaScript. For other common types, you can convert them to PDF format on the server side using OpenOffice/LibreOffice by installing the cups-pdf
virtual printer and then print your document via OpenOffice:
oowriter -pt pdf your_word_file.doc
See this question.
精彩评论