excel2pdf
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。
$ npx -y skills add coderwanfeng/python-office --skill docx4imgs --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/docx4imgsContext preview
The summary Claude sees to decide when to auto-load this skill.
从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。
name: docx4imgs description: 从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。
> 从 Word 里提取图片
从 Word 文档中提取所有图片,并保存到指定目录。会自动根据 word 名称在指定文件夹下生成一个子目录。
`office/skills/word/docx4imgs/`
from skills.word import docx4imgs
docx4imgs(
word_path='./test.docx',
img_path='./images/'
)| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `word_path` | str | 是 | - | Word 文档的路径 | | `img_path` | str | 是 | - | 提取图片的存储位置。会根据 word 名称在指定文件夹下自动生成一个子目录 |
`None`
from skills.word import docx4imgs docx4imgs(word_path='./document.docx', img_path='./extracted_images/')
`office.api.word.docx4imgs`
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
在 Excel 文件中搜索指定关键词并返回文件、行号、详情。当用户提到搜索 Excel、Excel 查找、Excel 搜索内容时使用。
将多个 Excel 文件合并到一个 Excel 的不同 sheet 中。当用户提到合并 Excel、合并多个表格、多个 Excel 合并时使用。
将同一个 Excel 文件的多个 sheet 拆分为独立文件。当用户提到拆分 sheet、Excel 按表拆分、拆 sheet 时使用。