OpenParable
Skip to content
← Back to skills

Ppt2img

Documents
ppt2img

Ppt2img is an Agent Skill for documents published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

将 PowerPoint 转换为图片,可合并为一张长图或多张图。当用户提到 PPT 转图片、PPT 截图、PPT 转长图、幻灯片截图时使用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/ppt/ppt2img/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ppt2img, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

ppt2img Skill

将 PPT 转换为图片,可以转为长图

功能描述

将 PowerPoint 文件转换为图片,支持合并为一张长图或多张图片。

所属分类

office/skills/ppt/ppt2img/

调用方式

from office.skills.ppt import ppt2img

ppt2img(
    input_path='./test.pptx',
    output_path='./',
    merge=False
)

参数说明

参数类型必填默认值说明
input_pathstr是-存放 PPT 的位置。转换单个文件可以写文件路径,转换文件夹可以写文件夹路径
output_pathstr否'./'结果图片的存储位置
mergebool否FalseTrue 转为 1 张图片,False 转为多张图片

返回值

None

使用示例

from office.skills.ppt import ppt2img
# 转为多张图片
ppt2img(input_path='./presentation.pptx', output_path='./images/')
# 转为一张长图
ppt2img(input_path='./presentation.pptx', merge=True)

原始函数

office.api.ppt.ppt2img