excel2pdf
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
将 PowerPoint 转换为图片,可合并为一张长图或多张图。当用户提到 PPT 转图片、PPT 截图、PPT 转长图、幻灯片截图时使用。
$ npx -y skills add coderwanfeng/python-office --skill ppt2img --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ppt2imgContext preview
The summary Claude sees to decide when to auto-load this skill.
将 PowerPoint 转换为图片,可合并为一张长图或多张图。当用户提到 PPT 转图片、PPT 截图、PPT 转长图、幻灯片截图时使用。
name: ppt2img description: 将 PowerPoint 转换为图片,可合并为一张长图或多张图。当用户提到 PPT 转图片、PPT 截图、PPT 转长图、幻灯片截图时使用。
> 将 PPT 转换为图片,可以转为长图
将 PowerPoint 文件转换为图片,支持合并为一张长图或多张图片。
`office/skills/ppt/ppt2img/`
from skills.ppt import ppt2img
ppt2img(
input_path='./test.pptx',
output_path='./',
merge=False
)| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `input_path` | str | 是 | - | 存放 PPT 的位置。转换单个文件可以写文件路径,转换文件夹可以写文件夹路径 | | `output_path` | str | 否 | `'./'` | 结果图片的存储位置 | | `merge` | bool | 否 | `False` | `True` 转为 1 张图片,`False` 转为多张图片 |
`None`
from skills.ppt import ppt2img # 转为多张图片 ppt2img(input_path='./presentation.pptx', output_path='./images/') # 转为一张长图 ppt2img(input_path='./presentation.pptx', merge=True)
`office.api.ppt.ppt2img`
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
在 Excel 文件中搜索指定关键词并返回文件、行号、详情。当用户提到搜索 Excel、Excel 查找、Excel 搜索内容时使用。
将多个 Excel 文件合并到一个 Excel 的不同 sheet 中。当用户提到合并 Excel、合并多个表格、多个 Excel 合并时使用。
将同一个 Excel 文件的多个 sheet 拆分为独立文件。当用户提到拆分 sheet、Excel 按表拆分、拆 sheet 时使用。