Skip to content
FunCoding

add_img_water

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

Star
1,359
License
Apache-2.0
Last commit
Aug 20, 2026

skills/pdf/add_img_water/SKILL.md

View on GitHub

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

Similar Skills

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills181k1,119 new stars in the last 7 days