OpenParable
Skip to content
← Back to skills

Add Img Water

Documents
add_img_water

Add Img Water is an Agent Skill for documents published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/pdf/add_img_water/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/add-img-water, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

add_img_water Skill

给 PDF 文件添加图片水印

功能描述

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

所属分类

office/skills/pdf/add_img_water/

调用方式

from office.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 office.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