简体   繁体   English

用于在 web 应用程序的 HTML 上实现 PowerPoint 查看器的选项(使用提供的 i-frame 标签嵌入除外)

[英]options for implementing a PowerPoint viewer on HTML for a web app (other than embedding with provided i-frame tag)

Here's what I'm trying to accomplish: displaying a PowerPoint presentation on HTML.这是我想要完成的工作:在 HTML 上显示 PowerPoint 演示文稿。 The user should be able to start and execute the presentation exactly like when you press the "Start Presentation" button in Microsoft PowerPoint: it goes fullscreen, transitions and animations are played, it goes to the next slide if a duration for the slide is set, on click it goes to the next slide, arrow keys are used for navigating slides and so on.用户应该能够像在 Microsoft PowerPoint 中按下“开始演示”按钮一样开始和执行演示:它会全屏显示,播放过渡和动画,如果设置了幻灯片的持续时间,它会转到下一张幻灯片, 单击它转到下一张幻灯片,箭头键用于导航幻灯片等。 Only need to run the presentation, NOT editing.只需要运行演示文稿,无需编辑。

I've been looking around and came up with these three approaches:我一直在环顾四周,想出了这三种方法:

  1. Creating the viewer from scratch and processing/reading the.pptx file using HTML, CSS and JS, btw is this is feasible?从头开始创建查看器并使用 HTML、CSS 和 JS 处理/读取 .pptx 文件,顺便说一句,这是可行的吗? I know it won't be easy, but it seems it would take a lot of time to develop (I'm just one person working in the project).我知道这并不容易,但似乎需要很多时间来开发(我只是一个在项目中工作的人)。 Also free or paid approaches both are fine, the more options I get to know the better.同样免费或付费的方法都很好,我了解的选项越多越好。
  2. WOPI host, the problem with this is I need a paid Office365 membership. WOPI 主机,问题是我需要付费的 Office365 会员资格。
  3. Embedding using a third party such as Office Online, Google Docs, slides.com, the problem I noticed is that the i-frame they provide lacks from functionality and customization.使用 Office Online、Google Docs、slides.com 等第三方嵌入,我注意到的问题是它们提供的 i-frame 缺乏功能和自定义。

So my question is, are there other approaches for this?所以我的问题是,还有其他方法吗? or is this all there is?还是这就是全部?

Final Edit : I decided to go with iSpring Converter Pro .最终编辑:我决定使用iSpring Converter Pro go。 Seems like the best option overall似乎是总体上最好的选择

  1. Insane amount of work -> not worth it.疯狂的工作量->不值得。 But you could use a paid library such as Aspose.Slides但是您可以使用付费库,例如Aspose.Slides
  2. MS WOPI is, indeed, a way to do that. MS WOPI 确实是一种方法。 WOPI clients such as Office Online and Office Online Server offer an action called present . WOPI 客户端(例如 Office Online 和 Office Online Server)提供了一个名为present的操作。 That's what you're looking for.这就是你要找的。
  3. What about SlideShare's API and oEmbed ? SlideShare 的 APIoEmbed怎么样?

Another approach:另一种方法:

  1. Convert the PPTX to ODF and use https://viewerjs.org/将 PPTX 转换为 ODF 并使用https://viewerjs.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM