想要:用于查看/打印 PDF、TIFF 或更多内容的 ASP.NET 控件?
我正在寻找一个 asp.NET 控件,它允许在 Web 表单中查看和打印 pdf 和 TIFF。如果需要,我愿意使用 1 个以上的控件(1 个用于 pdf 的控件,1 个用于 Tiff,根据文件扩展名显示和隐藏),但我一直无法找到一个好的 Tiff 查看器。
文件存储在我们 LAN 上的共享文件夹中,并且此应用程序是一个 Intranet 站点。
首选开源/免费许可,但我也愿意考虑付费选项。
I'm looking for an asp.NET control that will allow for viewing and printing of a pdf and TIFF within a web form. I'm willing to use more than 1 control if needed (1 control for pdf, 1 for Tiff, show and hide based on file extension), but I have not been able to find a good Tiff viewer.
Files are stored on our LAN in a shared folder, and this application is an intranet site.
Open source / free licensing preferred, but I'm willing to look at paid options as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
http://www.alternatiff.com/ 是我见过的用于此类型的查看器之一查看 tiff。
http://www.alternatiff.com/ is one of the viewers that I've seen used for this type of viewing of tiffs.
您可以获得 ABCPDF 的免费许可证(前提是您链接回他们的网站),这将根据 @Chris Lively 的建议,将 TIFF 转换为 PDF。
如果您决定向后执行操作,它还会执行从 PDF 到 TIFF 的转换。
以通用格式呈现内容是有意义的。如果您愿意,可以将 PDF 嵌入到浏览器中,以使用 PDFObject。
正如 @BenCr 所说,PDF 是一种非常常见的格式,并且已经存在打开和使用它们的工具,因此引入新的方法来执行现有任务实际上可能最终会使事情变得不必要的复杂化。
You can get a free licence of ABCPDF (provided you link back to their site) which will do the conversion from TIFF to PDF for you as per @Chris Lively 's suggestion.
It'll also do conversion from PDF to TIFF if you decide to do things backwards.
It makes sense to present the content in a common format. If you wanted to you can embed the PDF in the browser to create the 'seamless' experience you're looking for using something like PDFObject.
As @BenCr says though, PDF is a really common format and the tools already exist to open and work with them, so introducing new ways to perform existing tasks could actually end up complicating matters unnecessarily.
我完全同意@BenCr 的观点。
查看 PDF 是一件极其常见的事情。无论如何,这都不是一个“技术”问题。
听起来您好像有某种类型的传真解决方案可以创建这些文档。最有可能的是多页 TIFF 和 PDF。
如果是这种情况,您可能只想首先将 TIFF 转换为 PDF,然后通过 Adobe 的 pdf 阅读器运行所有内容。每个在线传真解决方案都可以做到这一点。
I'm in total agreement with @BenCr on this.
Viewing PDFs is an extremely common thing to do. This isn't a "technical" issue by any stretch.
It sounds like you have some type of faxing solution in place that is creating these documents. Most likely multi-page TIFF and PDFs.
If this is the case you might want to just convert the TIFFs to PDFs to begin with and run everything through Adobe's pdf reader. Every online fax solution does this.
你可以尝试http://issuu.com/,如果你想深入的话,他们似乎也有一个API 。
You could try http://issuu.com/ and they appear to have a API too if you want to go that deep.
我们使用 Seadragon 控件 来执行此操作。我认为这是一种矫枉过正的做法,我们应该自己推出——这样会比集成它更便宜。 TIFF 和 PDF 在服务器端转换为 PNG。我认为您不能做得更好,尤其是对于 PDF(假设您不想使用 Acrobat Reader 来显示它们)。使用 Xpdf/Poppler 将 PDF 转换为 PNG。
We used the the Seadragon control to do this. I think it was an overkill and we should have just rolled our own -- would have been cheaper than integrating it. TIFFs and PDFs are converted to PNG on the server side. I don't think you can do better than that, especially with PDFs (assuming you don't want to use Acrobat Reader to display them). Convert PDFs to PNG using Xpdf/Poppler.
使用 Google 文档查看器怎么样?
编辑:可能不起作用,因为查看者必须从您的 URL 读取文档;当它在内联网上时,这将不起作用。
How about using Google Docs Viewer?
EDIT: Probably not working, since the viewer has to read the document from your URL; when it's on the Intranet, this won't work.
如果您可以搞乱 mime 类型(主要是通过使 .tiff 文件公开 application/pdf mimetype),您应该能够通过有效地欺骗浏览器使用 acrobat 打开 TIFF 文件,让 acrobat 直接打开 TIFF 文件。那么您所需要的只是一个值得信赖的旧 iframe,让您熟悉带有打印按钮的 UI。
If you can mess about with mime types -- mainly by making the .tiff files expose an application/pdf mimetype -- you should be able to get acrobat to open TIFF files directly by effectively fooling the browser to open TIFF files with acrobat. Then all you need is a trusty old iframe to get you familiar UI with print buttons.