The core pain point is the inability to export HTML presentations generated by `html-ppt` into the widely accepted PPTX format, hindering sharing with non-technical stakeholders. The proposed solution is `html-to-pptx`, a dedicated conversion tool.
Raw Developer Origin & Technical Request
GitHub Issue
Apr 18, 2026
## 背景
html-ppt 生成的 HTML 演示文稿效果非常好,但在实际使用中,经常需要将作品分享给只接受 PPTX 格式的同事或客户。目前缺少一个简便的转换工具。
## 方案
我开发了一个开源配套工具 **[html-to-pptx](github.com/nlj626/html-to-pp... html-ppt 设计,一键将 HTML 演示文稿转换为 PPTX 文件。
### 工作原理
1. **headless Chrome 截图**:利用 html-ppt 的 `#/N` 深度链接,逐页将 HTML 渲染为 PNG 图片
2. **pptxgenjs 组装**:将 PNG 图片按顺序嵌入 PPTX,每张图片铺满整页
因为是截图方式,PPTX 会 **100% 还原 HTML 的视觉效果**(字体、颜色、布局、渐变等)。
### 主要功能
- 支持 16:9、4:3、3:4、1:1 多种宽高比
- 可调 JPEG 压缩质量,支持 PNG 无损模式
- 自动检测页数,也可手动指定
- 可作为 Claude Code Skill 使用(说"导出 PPTX"即可触发)
### 快速使用
```bash
# 安装
npx skills add nlj626/html-to-pptx
# 使用
bash scripts/html-to-pptx.sh your-deck/index.html
```
### 许可证
MIT License,与 html-ppt 完全兼容。项目独立维护,不包含 html-ppt 的任何源码。
---
如果觉得这个工具对 html-ppt 用户有帮助,欢迎在 README 的相关项目(Related / Companion Tools)中添加链接,让更多用户知道。谢谢!
Developer Debate & Comments
No active discussions extracted for this entry yet.
Frequently Asked Questions
Market intelligence mapped to The core pain point is the inability to export HTML presentations generated by `html-ppt` into the widely accepted PPTX format, hindering sharing with non-technical stakeholders. The proposed solution is `html-to-pptx`, a dedicated conversion tool..
What is the technical positioning of The core pain point is the inability to export HTML presentations generated by `html-ppt` into the widely accepted PPTX format, hindering sharing with non-technical stakeholders. The proposed solution is `html-to-pptx`, a dedicated conversion tool.?
What are the foundational technologies related to The core pain point is the inability to export HTML presentations generated by `html-ppt` into the widely accepted PPTX format, hindering sharing with non-technical stakeholders. The proposed solution is `html-to-pptx`, a dedicated conversion tool.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like MIT License and npx skills add by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics