如何从 Powerpoint 转换为 HTML/CSS?(开源软件)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6274218/
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
How to convert from Powerpoint to HTML / CSS ? (FOSS)
提问by Mawg says reinstate Monica
Someone has mocked up a website using PowerPoint, and I have to convert it to HTML / CSS.
有人使用 PowerPoint 模拟了一个网站,我必须将其转换为 HTML/CSS。
This is not a request to simply embed PowerPoint into the webpages. This will not be a static HTML site. PHP will generate HTML, and there are a bunch of forms for the user to submit information.
这不是简单地将 PowerPoint 嵌入网页的请求。这不会是静态 HTML 站点。PHP 会生成 HTML,并且有一堆表单供用户提交信息。
Is there a conversion tool, or a series of conversion hoops that I can jump through? I'd much rather have the styles in CSS than inline in the HTML.
有没有我可以跳过的转换工具或一系列转换环?我更喜欢 CSS 中的样式而不是 HTML 中的内联样式。
采纳答案by alt
Since I'm guessing you're not the best with web design hardcode, your options are:
因为我猜你在网页设计硬编码方面不是最好的,你的选择是:
Go into powerpoint, and use the 'Save For Web' button. It won't be perfect, you'll probably have to tweak some stuff, but you could make it look right with much less coding knowledge then the normal site.
进入powerpoint,然后使用“保存为Web”按钮。它不会是完美的,您可能需要调整一些东西,但是您可以使用比普通站点少得多的编码知识使其看起来正确。
OR: Make a flash site and embed the powerpoint into the flash, if you're flash savvy.
或:制作一个 Flash 站点并将 powerpoint 嵌入到 Flash 中,如果您精通 Flash。
OR: Here's a poweproint conversion tool if your powerpoint if you don't want to code at all: http://www.pptools.com/ppt2html/index.htmlI'm not sure how well it works, you'll probably just end up frustrated and you'll have to code some anyway.
或者:如果您根本不想编码,这里有一个 powerpoint 转换工具:http://www.pptools.com/ppt2html/index.html 我不确定它的效果如何,你可能会只是最终感到沮丧,无论如何你都必须编写一些代码。
Option #1 is good, and it will require very little actual coding, just fixing the thing powerpoint does wrong.
选项 #1 很好,它只需要很少的实际编码,只需修复 powerpoint 做错的事情。
Option #3, flash ewww.
选项#3,闪烁ewww。
Option #4 I haven't tried it, but you sure can if you're feeling up to it, probably won't be too fast or customizable.
选项 #4 我还没有尝试过,但如果你愿意,你肯定可以,可能不会太快或可定制。
But overall, the best bet is going to be look at it with your eyes and convert it using your knowledge of code and w3fools.com, err, oops, http://www.w3schools.com/as a resource.
但总的来说,最好的办法是用你的眼睛看它,并使用你的代码知识和 w3fools.com, err, oops, http://www.w3schools.com/作为资源来转换它。
回答by JoshDM
The "Save As Webpage" option no longer exists on PowerPoint 2010 and later.
PowerPoint 2010 及更高版本中不再存在“另存为网页”选项。
Microsoft has provided a workaround, summarized as, "use the ppSaveAsHTML
argument for the *.htm
file format."
Microsoft 提供了一种解决方法,概括为“使用文件格式的ppSaveAsHTML
参数*.htm
”。
- In PowerPoint 2010, open the presentation that you want to export to HTML.
- Press Alt+F11, this opens VB for Apps.
- Press Ctrl+G, this opens the Immediate pane.
In the Immediate pane, type the following, and then press the
Enter
key:ActivePresentation.SaveAs "<Drive>:\users\<username>\desktop\<filename>.htm", ppSaveAsHTML, msoFalse
- 在 PowerPoint 2010 中,打开要导出为 HTML 的演示文稿。
- 按 Alt+F11,这将打开 VB for Apps。
- 按 Ctrl+G,这将打开“立即”窗格。
在“立即”窗格中,键入以下内容,然后按
Enter
键:ActivePresentation.SaveAs "<Drive>:\users\<username>\desktop\<filename>.htm", ppSaveAsHTML, msoFalse
To save by using the Single File Web Page (*.mht
;*.mhtml
) file format, replace htm
at the end of the file name with mht
, and replace ppSaveAsHTML
with ppSaveAsWebArchive
.
要使用单个文件网页 ( *.mht
; *.mhtml
) 文件格式保存,请将htm
文件名末尾替换为mht
,然后替换ppSaveAsHTML
为ppSaveAsWebArchive
。
回答by jade290
回答by Steve Rindsberg
FWIW, I don't think the PPTools PPT2HTML add-in will give the needed results. I wrote it, so I suppose I can answer as authoritatively as anyone. ;-)
FWIW,我认为 PPTools PPT2HTML 加载项不会提供所需的结果。我写了它,所以我想我可以像任何人一样权威地回答。;-)
It'll give you an image of the original PPT slide, optionally with an image map that preserves the links and action settings if any.
它将为您提供原始 PPT 幻灯片的图像,还可以选择带有保留链接和操作设置(如果有)的图像映射。
And it could be used to extract the title, body and any other text in a fairly predictable way, and could even insert any HTML/CSS code you like around each of these bits of text, but unless the slide/slides are fairly simple examples of stock PPT slides, that might not be very helpful.
它可以用于以相当可预测的方式提取标题、正文和任何其他文本,甚至可以在这些文本的每一位周围插入您喜欢的任何 HTML/CSS 代码,但除非幻灯片/幻灯片是相当简单的示例库存 PPT 幻灯片,这可能不是很有帮助。
回答by user2343734
The best i found (for developers) is PowerPoint to Html5 SDK. It convert powerpoint to html including video and audio with amazing player API. Very easy to customize (player template can be customized). Quality is also good: try it
我发现(对于开发人员)最好的是 PowerPoint to Html5 SDK。它使用惊人的播放器 API 将 powerpoint 转换为 html,包括视频和音频。非常容易定制(可以定制播放器模板)。质量也不错:试试吧
回答by Anto Jose
Have you tried the converion tool html5point? They have a demo on the site as in convertio. But there is a watermark on the output.
你试过转换工具html5point吗?他们在网站上有一个演示,就像在 convertio 中一样。但是输出上有水印。
https://www.digitalofficepro.com/powerpoint/powerpoint-to-html5-converter.html
https://www.digitalofficepro.com/powerpoint/powerpoint-to-html5-converter.html
回答by Peter
By far the easiest way to convert your PPT to HTML5 format is to use iSpring Converter Pro. Check it out here: http://www.ispringsolutions.com/ppt-to-html
到目前为止,将 PPT 转换为 HTML5 格式的最简单方法是使用 iSpring Converter Pro。在这里查看:http: //www.ispringsolutions.com/ppt-to-html