excel2pdf
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
将旧版 Word 文档(.doc)转换为新版(.docx)。当用户提到 doc 转 docx、旧 Word 转新 Word 时使用。
$ npx -y skills add coderwanfeng/python-office --skill doc2docx --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/doc2docxContext preview
The summary Claude sees to decide when to auto-load this skill.
将旧版 Word 文档(.doc)转换为新版(.docx)。当用户提到 doc 转 docx、旧 Word 转新 Word 时使用。
name: doc2docx description: 将旧版 Word 文档(.doc)转换为新版(.docx)。当用户提到 doc 转 docx、旧 Word 转新 Word 时使用。
> 将 Doc 文件转换为 Docx 文件
将旧版 Word 文档(.doc)转换为新版 Word 文档(.docx)。
`office/skills/word/doc2docx/`
from skills.word import doc2docx
doc2docx(
input_path='./old.doc',
output_path='./',
output_name='new.docx'
)也可以直接把目标文件路径传给 `output_path`:
from skills.word import doc2docx
doc2docx(
input_path='./old.doc',
output_path='./new/new.docx'
)| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `input_path` | str | 是 | - | 输入 Doc 文件的路径 | | `output_path` | str | 否 | `'./'` | 输出 Docx 文件的路径,可以是输出目录,也可以是完整的 `.docx` 文件路径 | | `output_name` | str | 否 | `None` | 输出 Docx 文件的名称。默认原文件名 |
`None`
from skills.word import doc2docx doc2docx(input_path='./old.doc', output_path='./new/')
from skills.word import doc2docx doc2docx(input_path='./old.doc', output_path='./new/new.docx')
`office.api.word.doc2docx`
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
在 Excel 文件中搜索指定关键词并返回文件、行号、详情。当用户提到搜索 Excel、Excel 查找、Excel 搜索内容时使用。
将多个 Excel 文件合并到一个 Excel 的不同 sheet 中。当用户提到合并 Excel、合并多个表格、多个 Excel 合并时使用。
将同一个 Excel 文件的多个 sheet 拆分为独立文件。当用户提到拆分 sheet、Excel 按表拆分、拆 sheet 时使用。