SuperAPI AI 工具集

pptx

通用与其它

查看项目

更新于 10-16 04:31

技能介绍

用途:处理 PowerPoint 演示文稿(.pptx),支持创建、编辑和分析。.pptx 本质是含 XML 与资源的 ZIP 包。

主要能力:读取与分析内容、提取文本、访问原始 XML、提取字体与配色、无模板新建、按模板新建、编辑已有幻灯片。

用法(命令保持原样): 转换文本为 markdown:python -m markitdown path-to-file.pptx 解包:python ooxml/scripts/unpack.py <office_file> <output_dir> 校验:python ooxml/scripts/validate.py <dir> --original <file> 打包:python ooxml/scripts/pack.py <input_directory> <office_file> 生成缩略图:python scripts/thumbnail.py output.pptx workspace/thumbnails --cols 4 重排幻灯片:python scripts/rearrange.py template.pptx working.pptx 0,34,34,50,52 提取文本清单:python scripts/inventory.py working.pptx text-inventory.json 新建时需先完整阅读 html2pptx.md,按 720pt×405pt 等尺寸制作 HTML 幻灯片,用 html2pptx.js 转换,并用 PptxGenJS 添加图表。编辑已有文件时先完整阅读 ooxml.md,改 XML 后立即校验。

关键文件:ppt/presentation.xml、ppt/slides/slideN.xml、ppt/notesSlides/、ppt/slideLayouts/、ppt/slideMasters/、ppt/theme/、ppt/media/。

限制:字体仅用 Arial、Helvetica、Times New Roman 等网络安全字体;图表或表格避免单列上下堆叠,优先两栏或整页布局;缩略图需人工检查文本截断、重叠、对比度等问题并反复修正。具体收费与价格暂未提供。