Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/add_watermark_by_parameters
通过参数化方式给 PDF 添加水印。当用户提到参数化 PDF 水印、批量 PDF 水印时使用。
Passed 25 of 25 test cases with the skill, and 10 of 25 without it.
and 24 more in the full report
15 fixed10 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a Python snippet that uses `add_watermark_by_parameters` from `skills.pdf` to add the watermark text 'CONFIDENTIAL' to `quarterly_report.pdf` and save the output as `watermarked_report.pdf` in `./`.
| Checked | Without skill | With skill |
|---|---|---|
| Uses parameter input_file for the source PDF path. | Missed | Passed |
| Uses parameter mark_str for the watermark string. | Missed | Passed |
| Uses parameter output_file for the destination file name. | Missed | Passed |
The instructions your model reads when the skill loads.
给 PDF 添加水印(带参数)
通过参数化方式给 PDF 添加水印,与 add_mark 类似。
office/skills/pdf/add_watermark_by_parameters/
from skills.pdf import add_watermark_by_parameters
add_watermark_by_parameters(
input_file='./test.pdf',
mark_str='python-office',
output_path='./',
output_file='watermarked.pdf'
)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
input_file | str | 否 | - | PDF 文件路径 |
mark_str | str | 否 | - | 水印内容 |
output_path | str | 否 | - | 输出路径 |
output_file | str | 否 | - | 输出文件名 |
pdf_file | str | 否 | - | [已弃用] 请使用 input_file |
output_file_name | str | 否 | - | [已弃用] 请使用 output_file |
None
test cases passed, vs 10 / 25 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.