在Web上previewing TIF文件(.NET C#) [英] Previewing TIF documents on the Web (.Net C#)

查看:110
本文介绍了在Web上previewing TIF文件(.NET C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一种方式来显示网页上的TIF文件。它基本上需要呈现在某种形式的容器的多页的TIF在网页上。

I am looking for a way to display TIF documents on a web page. It basically needs to render a Multi-page TIF in some form of container on a web page.

我是否需要控制或者是有建立这样的一个简单的方法?是否有任何免费的东西,我们可以简单地实现?

Do I need a control or is there a simple way to build something like this? Is there any free stuff that we could simply implement?

我已经看了看 Telerik报告的产品,这显然含有的Tif观众。我还没有研究许可这个虽然。 (如果我只需要TIF浏览器,做我需要购买整个报表解决方案?

I have looked at the Telerik reporting product which apparently contains a Tif viewer. I haven't looked into the licensing for this though. (If I only need the TIF Viewer, do I need to purchase the entire reporting solution?

目前,我们(像往常一样)最大的问题是,我们有很少的可用资源非常紧张的最后期限。该产品将在客户端的安装,ActiveX控件安装不理想这一请求用户权限。

Our biggest issue at the moment (like always) is that we have a very tight deadline with very little available resource. This product will be installed at a client so ActiveX controls that request user permission to install are less than ideal.

任何建议和/或意见将受到欢迎。

Any suggestions and/or comments would be welcome.

感谢

推荐答案

如果您想尝试推出自己的(这将是一个大量的工作),你可以使用System.Drawing命名空间为TIF图像转换为浏览器支持的格式,如PNG或JPG或第三方库如 AbcPdf 去以PDF为拉撒路建议。这里的问题是,你必须创建和code-背后的放大倍率,裁剪和多页支持,任何你想沿着工具,这可能是编码的(除非你去的颇有几分为PDF格式,并依靠ADOBE READER)。此外,服务器端转换可以为速度让人望而却步,如果你正在处理大量TIF文件或与不支持的格式。

If you want to try and roll your own (this would be a lot of work), you can use the System.Drawing namespace to convert TIF images to a browser-supported format, like PNG or JPG, or a third party library like AbcPdf to go to PDF as Lazarus suggested. The problem here is that you would have to create and code-behind a toolset for magnification, cropping, and multi-page support, along with whatever else you would want, which could be quite a bit of coding (unless you went to PDF and relied on Adobe Reader). Also, the server-side conversion can be prohibitive for speed if you're dealing with large TIF files or with formats that aren't supported.

至于厂商的解决方案而言,我不知道有什么好的免费观看的插件离手。 - [R Ubben是正确的;大雪的观众是不错,但如果我还记得,在AJAX版本需要它自己的网站,你的形象传递给,然后把它呈现给客户端,这可能会带来一些安全问题(并留下不好的味道在我嘴里反正) 。 Atalasoft 拥有出色的AJAX图像浏览器和一个非常强大的成像SDK,但它的成本一点。我现在的公司已经从飞马成像的ActiveX插件结算(最近Accusoft合并)称为 PRIZM浏览器 。该浏览器本身是非常强大的,可以处理多种图像格式,并编写脚本。它也有缺点(除了作为一个ActiveX控件)。我们已经遇到了一些麻烦与我们的桌面部署作为默认安装只会推动,而不是本地计算机的当前用户,但我们已经修复了与安装后的注册表破解。

As far as vendor solutions are concerned, I don't know of any good free viewing plugins off-hand. R Ubben is right; Snowbound's viewer is nice, but if I recall, the AJAX version requires it's own website that you pass the image to, which then gets rendered to the client, which may bring up some security issues (and leaves a bad taste in my mouth anyway). Atalasoft has an excellent AJAX image viewer and a very powerful imaging SDK, but it does cost a bit. My current company has settled on an ActiveX plugin from Pegasus Imaging (recently merged with Accusoft) called Prizm Viewer. The viewer itself is quite powerful, can handle many image formats, and is scriptable. It does have drawbacks (beyond being an ActiveX control). We've had some trouble with our desktop deployments as the default install will only push for the current user as opposed to the local machine, but we've fixed that with a post-install registry hack.

我要说的是,如果你有现金,并希望一个强大的成像解决方案,顺应Atalasoft。否则,飞马是相当便宜,工作得很好,除非你有严重的厌恶来的ActiveX。还有很多其他的选择了,这只是一个多少钱,你有问题,多少编码你想做的事情。

I would say that, if you have the cash and want a robust imaging solution, go with Atalasoft. Otherwise, Pegasus is fairly cheap and works just fine, unless you have severe aversions to ActiveX. There are lots of other options out there, it's just a matter of how much money you have and how much coding you want to do.

这篇关于在Web上previewing TIF文件(.NET C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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