excel2pdf
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
给 PDF 添加文字水印(简化接口)。当用户提到 PDF 加文字、PDF 标记时使用。
$ npx -y skills add coderwanfeng/python-office --skill add_mark --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/add_markContext preview
The summary Claude sees to decide when to auto-load this skill.
给 PDF 添加文字水印(简化接口)。当用户提到 PDF 加文字、PDF 标记时使用。
name: add_mark description: 给 PDF 添加文字水印(简化接口)。当用户提到 PDF 加文字、PDF 标记时使用。
> 给 PDF 添加水印
向 PDF 文件添加文字水印。
`office/skills/pdf/add_mark/`
from skills.pdf import add_mark
add_mark(
input_file='./test.pdf',
mark_str='python-office',
output_path='./',
output_file='watermarked.pdf'
)| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `input_file` | str | 否 | - | PDF 文件的位置,例如 `d:/code/programmer.pdf` | | `mark_str` | str | 否 | - | 需要添加的水印内容,例如 `"python-office"` | | `output_path` | str | 否 | - | 保存文件的位置 | | `output_file` | str | 否 | - | 指定添加了水印的文件名称 | | `pdf_file` | str | 否 | - | **[已弃用]** 请使用 `input_file` | | `output_file_name` | str | 否 | - | **[已弃用]** 请使用 `output_file` |
`None`
from skills.pdf import add_mark add_mark(input_file='./report.pdf', mark_str='机密')
`office.api.pdf.add_mark`
将 Excel 文件的指定工作表转换为 PDF 格式。当用户提到 Excel 转 PDF、表格转 PDF、导出 Excel 为 PDF 时使用。
在 Excel 文件中搜索指定关键词并返回文件、行号、详情。当用户提到搜索 Excel、Excel 查找、Excel 搜索内容时使用。
将多个 Excel 文件合并到一个 Excel 的不同 sheet 中。当用户提到合并 Excel、合并多个表格、多个 Excel 合并时使用。
将同一个 Excel 文件的多个 sheet 拆分为独立文件。当用户提到拆分 sheet、Excel 按表拆分、拆 sheet 时使用。