Currently, we want to implement online document preview similar to Baidu Wenku, but they generally use Flash, and HTML5 canvas can replace Flash in most cases. So is there a way to let canvas display/preview Office documents?
If you don’t use Flash, the only way at present is to use OpenOffice/LibreOffice or an online service (such as the document conversion service provided by a third party in Qiniu) to convert it to PDF, and then use Mozilla’s pdf.js to preview it online.
Currently, we want to implement online document preview similar to Baidu Wenku, but they generally use Flash, and HTML5 canvas can replace Flash in most cases. So is there a way to let canvas display/preview Office documents?
If you don’t use Flash, the only way at present is to use OpenOffice/LibreOffice or an online service (such as the document conversion service provided by a third party in Qiniu) to convert it to PDF, and then use Mozilla’s pdf.js to preview it online.
This kind of demand is mainly handled by a powerful backend.
I have looked for it before, you can check out this https://segmentfault.com/q/1010000004959795