java 寻找“通用”文档查看器组件/库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/234914/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Looking for a "Universal" Document viewer component/library
提问by JohnFx
I am looking for an Applet with similar functionality to the Oracle/Stellent OutsideIn ActiveX control or the Autonomy KeyView technology that act as a browser plug-in allowing the rendering/display of a large number of file formats (Word processing, spreadhseet, graphics, etc.) I currently use the Stellent solution, but due to some restrictions of some of our clients would prefer something that either exists as a Java Applet, Silverlight control, or has a Java API that I could build an applet on top of (neither of the two I mentioned do).
我正在寻找具有与 Oracle/Stellent OutsideIn ActiveX 控件或 Autonomy KeyView 技术类似功能的 Applet,这些 Applet 充当浏览器插件,允许呈现/显示大量文件格式(文字处理、电子表格、图形、等)我目前使用 Stellent 解决方案,但由于我们的一些客户的一些限制,他们更喜欢一些作为 Java Applet、Silverlight 控件存在的东西,或者有一个我可以在其上构建小程序的 Java API(既不我提到的两个都是这样做的)。
At a bare minimum it would need to display at least the following formats:
MS Word, Excel, PowerPoint
MS Outlook MSG files
Adobe PDF
Standard image formats: BMP, PNG, JPEG, TIFF
WordPerfect
HTML
它至少需要显示以下格式:
MS Word、Excel、PowerPoint
MS Outlook MSG 文件
Adobe PDF
标准图像格式:BMP、PNG、JPEG、TIFF
WordPerfect
HTML
Any suggestions?
有什么建议?
采纳答案by RealHowTo
If a commercial product is an option, ViewOneis a nice product. It's an Applet and you can view a large variety of document.
如果可以选择商业产品,那么 ViewOne是一款不错的产品。它是一个 Applet,您可以查看各种文档。
回答by John
Have you looked at Adeptol AJAX Document Viewer.
A no plugin non applet no install viewer which supports more than 300 file typess.
See ajaxdocumentviewer.com
您是否看过 Adeptol AJAX 文档查看器。
一个无插件非小程序无需安装查看器,支持 300 多种文件类型。
请参阅ajaxdocumentviewer.com
回答by Graham Stephenson
You may be interested in Net-it Central. It uses an Active-x plugin or java applet and works with several different formats. I am using it for Word and Excel currently.
您可能对 Net-it Central 感兴趣。它使用 Active-x 插件或 java 小程序,并使用多种不同的格式。我目前将它用于 Word 和 Excel。
回答by wnoise
It's not a plugin, but multivalentis a java library and browser for a large number of document formats, but probably not all the ones you'd like to cover.
它不是插件,但multivalent是一个 Java 库和浏览器,适用于大量文档格式,但可能不是您想要涵盖的所有格式。
It does at least cover the PDF, HTML, and any reasonable image format, but not any of the proprietary formats.
它至少涵盖了 PDF、HTML 和任何合理的图像格式,但不包括任何专有格式。
回答by ddimitrov
If you are looking for pure Java component that supports all these formats, I'm pretty confident that it doesn't exist. If what you want is to embed Browser, MS Office, Acrobat etc. you would need an ActiveX container.
如果您正在寻找支持所有这些格式的纯 Java 组件,我非常有信心它不存在。如果您想要嵌入浏览器、MS Office、Acrobat 等,您将需要一个 ActiveX 容器。
Here are some choices:
这里有一些选择:
JDIC- if you are using Swing (see the Document Viewer demo.)
JDIC- 如果您使用的是 Swing(请参阅文档查看器演示。)
SWT ActiveX container- if you are using SWT
SWT ActiveX 容器- 如果您使用 SWT
TeamDev WinPack- if your time is more valuable than your money ;-) The product is very polished, the price is reasonable and the support is excellent.
TeamDev WinPack- 如果您的时间比金钱更有价值 ;-) 产品非常精美,价格合理,支持出色。
Note that with any of these you need to have installed Acrobat, MS Office (or the free doc viewers) and whatever else applications you need to edit the file formats.
请注意,对于其中任何一个,您都需要安装 Acrobat、MS Office(或免费文档查看器)以及编辑文件格式所需的任何其他应用程序。

