CtrlK
BlogDocsLog inGet started
Tessl Logo

add_img_water

给 PDF 添加图片水印(logo 等)。当用户提到 PDF 图片水印、PDF 加 logo 时使用。

Invalid
This skill can't be scored yet
Validation errors are blocking scoring. Review and fix them to unlock Quality, Impact and Security scores. See what needs fixing →
SKILL.md
Quality
Evals
Security

add_img_water Skill

给 PDF 文件添加图片水印

功能描述

向 PDF 文件添加图片作为水印。

所属分类

office/skills/pdf/add_img_water/

调用方式

from skills.pdf import add_img_water

add_img_water(
    input_file='./test.pdf',
    mark_file='./watermark.png',
    output_file='./with_watermark.pdf'
)

参数说明

参数类型必填默认值说明
input_filestr-输入 PDF 文件路径
mark_filestr-水印图片文件路径
output_filestr-输出 PDF 文件路径
pdf_file_instr-[已弃用] 请使用 input_file
pdf_file_markstr-[已弃用] 请使用 mark_file
pdf_file_outstr-[已弃用] 请使用 output_file

返回值

None

使用示例

from skills.pdf import add_img_water
add_img_water(
    input_file='./report.pdf',
    mark_file='./logo.png',
    output_file='./with_watermark.pdf'
)

原始函数

office.api.pdf.add_img_water

Repository
CoderWanFeng/python-office
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.