Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我的 Web 应用程序编写一个“快速查看”功能,允许用户在网页上“查看”此类文档,我该怎么做?谢谢你。
您可以使用可以打开所有这些格式的 OpenOffice。OpenOffice 还可用于将文档转换为 HTML。所有这些都可以通过服务器上的 Java API 完成(不需要 GUI)。
虽然我不知道生成的 HTML 有多好,但它可能值得一试。
对于 PDF,您将需要一个 OpenOffice 插件,使 OpenOffice 能够打开 PDF(用于编辑)。
查看鳄鱼 API。Crocodoc提供了一个 HTML5 查看器(没有 Flash!),您可以将其嵌入到您的网页中。它可以免费用于非商业用途。