1 Star 4 Fork 0

cxh1205 / ppt2html

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

把PPT变成html网页

Convert ppt to html page

演示demo(gitee):https://cxh1205.gitee.io/ppt2html

演示demo(github):https://cxh1205.github.io/ppt2html/

操作:

  • 滚轮向上为上一张,向下为下一张。
  • 点击屏幕上半部分为上一张,点击屏幕下半部分为下一张。
  • 按左键和上键是上一张,按右键和下键以及空格是下一张。

Operation:

  • Scroll wheel up for the previous sheet, down for the next sheet.

  • Click on the top half of the screen for the previous one, click on the bottom half of the screen for the next one.

  • Press the left and up keys for the previous one, press the right and down keys and space for the next one

使用方法:

注意:使用方法仅对MS office2016进行了测试,未测试其他版本及软件,可能需要做出相应的更改

  1. 使用git clone git@gitee.com:cxh1205/ppt2html.git(gitee)或git clone git@github.com:cxh1205/ppt2html.git(gihub)克隆存储库,或者直接下载release使用
  2. 点击文件-导出-更改文件类型-选择一个图片格式-全部幻灯片将ppt导出为图片(例如png、jpg、svg等。推荐svg,因为如果要在线部署体积最小,加载速度最快)
  3. 将图片全部复制到assets文件夹中
  4. 双击运行assets\rename_slide.bat,文件名将从幻灯片1.SVG变为00001.SVG
  5. 修改index.html,将totalSlides变量改为幻灯片的数量,将suffix改为导出的后缀名
  6. 双击index.html即可打开网页

高级-修改导出图片的分辨率

参考如何从 PowerPoint 导出高分辨率(高 dpi)幻灯片

Usage:

Note: the use of the Chinese version of MS office2016 only tested, not tested other versions and software, may need to make the corresponding changes

  1. Use git clone git@gitee.com:cxh1205/ppt2html.git (gitee) or git clone git@github.com:cxh1205/ppt2html.git (gihub) to clone the repository, or download the release directly to use
  2. Click File - Export - Change File Type - Select an image format - All Slides to export the ppt as an image (e.g. png, jpg, svg, etc.). (Recommend svg, because if you want to deploy online the smallest size, the fastest loading speed)
  3. Copy all the images to the assets folder
  4. double click to run assets\rename_slide.bat, the file name will change from 幻灯片1.SVG to 00001.SVG
  5. Modify index.html, change the totalSlides variable to the number of slides, and change suffix to the exported suffix
  6. Double click index.html to open the page

Advanced - Modify the resolution of exported images

Refer to How to export high-resolution (high-dpi) slides from PowerPoint

建议:

  • 如果测试了其他的软件或版本欢迎提交pr
  • 如果有新的操作想法欢迎提交pr

Recommendation:

  • If tested other software or version welcome to submit pr
  • If there are new ideas for operation welcome to submit pr

鸣谢:

New Bing

Thanks to:

New Bing

MIT License Copyright (c) 2023 cxh1205 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

把一个ppt变成一个html网页,可以本地浏览也可以在线浏览 Turn a ppt into an html page that can be viewed locally or online 展开 收起
HTML
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML
1
https://gitee.com/cxh1205/ppt2html.git
git@gitee.com:cxh1205/ppt2html.git
cxh1205
ppt2html
ppt2html
master

搜索帮助