在我的网络浏览器中预览Doc,Xls,PPT,MHT,TIFF,DWG文件 [英] Preview Doc, Xls, PPT, MHT, TIFF, DWG files in my web browser

查看:108
本文介绍了在我的网络浏览器中预览Doc,Xls,PPT,MHT,TIFF,DWG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我需要在我的网页浏览器中预览Doc,Xls,PPT,MHT,TIFF,DWG文件(与浏览器中打开的pdf文件相同)使用acrobat阅读器)。



我在谷歌搜索了很多,但没有得到任何帮助。如果有人可以建议我怎么开始这个,那将是一个很大的帮助。





提前致谢。



Richa Sharma

Hi All,

I need to preview Doc, Xls, PPT, MHT, TIFF, DWG files in my web browser (same as pdf files open in browser using acrobat reader).

I has searched a lot on google, but not got any help. If anyone can suggest me how can I start this, it will be a great help.


Thanks in advance.

Richa Sharma

推荐答案

这不是一个简单或简单的解决方案。除了MHT之外,那些专有的文件格式并不打算在浏览器中显示。



我将从你需要的每个文件生成器开始查看,但我怀疑你会有多少运气。
This is not an easy or trivial solutions. Save for the MHT those are proprietary file formats that are not meant to be displayed in a browser.

I would start with each of the producers of the files you needing to view, but I doubt you will have much luck.


首先,你没有像你描述的那样预览PDF,Adobe Acrobat Reader有一个插件,由浏览器显示PDF的内容。同样,Chrome拥有自己的PDF阅读器。

您可以使用不同的插件在应用程序中嵌入不同的查看器。但是你需要在客户端安装它们。



但这种方法无法预览。它既不是跨浏览器,也不是跨平台的。而且,随着HTML5进入无插件方向,它也不具备前瞻性。



如果你真的需要预览,你需要渲染那些文件作为服务器上的图像并将该图像发送给客户端。



我建议你找一些商业库或命令行工具,你可以在asp上调用.net服务器端来自c#,并在上传这些文件时创建实际预览图像(PNG)。使用TIFF,你不需要.net支持的东西,所以你有把它转换成png的所有东西。



你可以尝试找到免费/开源工具,但我怀疑你会发现任何。

这些是一些商业选择:

http://rainbowpdf.com/server-based-converter/ [< a href =http://rainbowpdf.com/server-based-converter/target =_ blanktitle =New Window> ^ ]

https://www.woutware.com/cadlib/4.0 [ ^ ]
First of all, you don't "preview" PDF's the way you described, Adobe Acrobat Reader has a plugin that is instanciated by the browser to show the content of the PDF. Likewise, Chrome has it's own PDF reader.
You can use different plugins to "embed" the different viewers in your application. But you will need to install them all on the client side.

But this approach is no preview. And neither is it cross-browser, or cross-platform. And as HTML5 goes in a plugin-less direction, it is not future-proof either.

If you really need a preview, you need to render those files as image on the server and send that image to the client.

I suggets you look for some commercial library or command line tool, that you can call on asp.net server side from c# and create actual preview images (PNG) at the time those files are uploaded. With TIFF you don't need such thing as it is supported by .net, so you have everything to convert it to png.

You can try to find free/open source tools for that, but I doubt you will find any.
These are some commetcial options:
http://rainbowpdf.com/server-based-converter/[^]
https://www.woutware.com/cadlib/4.0[^]


这篇关于在我的网络浏览器中预览Doc,Xls,PPT,MHT,TIFF,DWG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆