mcpField
P
PDF Watermark

PDF Watermark

github.com/claude-office-skills文档处理5454.6k 次安装39 周前更新
代码仓库

关于 PDF Watermark

PDF Watermark 是用于为文档添加水印和页面元素的技能,包括页码、页眉页脚、印章及标签。它也介绍批量处理,但明确说明仅提供指导,不会实际执行水印操作。

主要功能

  1. 01文字和图片水印
  2. 02多种页码格式
  3. 03页眉和页脚
  4. 04印章、标签及 Bates 编号
  5. 05批量处理文档

适用场景

  1. 01为草稿或机密 PDF 添加标记
  2. 02为报告添加页码
  3. 03统一设置页眉和页脚
  4. 04批量标记法律文档

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/claude-office-skills/skills --skill pdf-watermark

安装后在 Claude Code 中输入/pdf-watermark确认已加载。

详细介绍

PDF 水印与页面元素

为 PDF 文档添加水印、页码、页眉、页脚及其他叠加元素。

概述

此技能可帮助你:

  • 添加文本或图片水印
  • 插入页码
  • 创建页眉和页脚
  • 应用印章和标签
  • 批量处理多份文档

使用方法

水印
"Add 'CONFIDENTIAL' watermark to this PDF"
"Apply a diagonal 'DRAFT' watermark"
"Add our company logo as a watermark"
页码
"Add page numbers to this PDF"
"Number pages starting from page 3"
"Add 'Page X of Y' at the bottom center"
页眉/页脚
"Add a header with the document title"
"Create a footer with date and page number"
"Add company name to every page header"

水印选项

文本水印
## Text Watermark Configuration

### Content
- **Text**: CONFIDENTIAL
- **Font**: Arial Bold
- **Size**: 72 pt
- **Color**: #FF0000 (Red)
- **Opacity**: 30%

### Position
- **Placement**: Center
- **Rotation**: 45° diagonal
- **Offset X**: 0
- **Offset Y**: 0

### Pages
- **Apply to**: All pages / First only / Custom range
- **Skip pages**: [None]

### Preview
╔════════════════════════╗
║                        ║
║    C O N F I D E N     ║
║      T I A L           ║
║                        ║
╚════════════════════════╝
图片水印
## Image Watermark Configuration

### Image
- **File**: logo.png
- **Size**: 200 x 100 px
- **Opacity**: 20%
- **Maintain aspect ratio**: Yes

### Position
| Preset | Description |
|--------|-------------|
| Center | Middle of page |
| Top-right | Corner logo |
| Bottom-center | Footer area |
| Tile | Repeated pattern |

### Current Setting
- **Position**: Bottom-right corner
- **Margin**: 20px from edges
- **Behind text**: Yes (background)
水印预设
预设文本样式使用场景
草稿DRAFT灰色、对角、50%正在处理的文档
机密CONFIDENTIAL红色、对角、30%敏感文档
副本COPY蓝色、水平、25%复制件
已批准APPROVED绿色、印章样式签核
样本SAMPLE灰色、平铺演示文档
请勿复制DO NOT COPY红色、对角、40%受限文档

页码

配置选项
## Page Numbering Configuration

### Format
| Style | Example |
|-------|---------|
| Simple | 1, 2, 3 |
| Page X | Page 1 |
| X of Y | 1 of 25 |
| Section | 1-1, 1-2 |
| Roman | i, ii, iii |
| Letter | A, B, C |

### Position
| Location | Alignment |
|----------|-----------|
| Header | Left / Center / Right |
| Footer | Left / Center / Right |

### Current Setting
- **Format**: Page {n} of {total}
- **Position**: Footer, Center
- **Font**: Arial, 10pt
- **Start from**: Page 1
- **Skip pages**: Cover (page 1)
高级编号
## Advanced Page Number Scheme

### Section-Based Numbering
| Pages | Format | Example |
|-------|--------|---------|
| 1 (Cover) | None | - |
| 2-5 (Front matter) | Roman | i, ii, iii, iv |
| 6-100 (Body) | Arabic | 1, 2, 3... |
| 101-110 (Appendix) | Letter | A-1, A-2 |

### Prefix/Suffix
- **Prefix**: "Page "
- **Suffix**: " - Company Name"
- **Result**: "Page 5 - Company Name"

页眉和页脚

页眉配置
## Header Setup

### Layout (3-column)
| Left | Center | Right |
|------|--------|-------|
| [Logo] | Document Title | [Date] |

### Styling
- **Font**: Arial, 10pt
- **Color**: #333333
- **Line below**: Yes, 0.5pt gray

### Dynamic Fields
| Field | Code | Output |
|-------|------|--------|
| Page number | {page} | 5 |
| Total pages | {pages} | 25 |
| Date | {date} | Jan 29, 2026 |
| Time | {time} | 14:30 |
| Filename | {filename} | report.pdf |
| Title | {title} | Q4 Report |
页脚配置
## Footer Setup

### Layout
| Left | Center | Right |
|------|--------|-------|
| © 2026 Company | Confidential | Page {page} of {pages} |

### Styling
- **Font**: Arial, 9pt
- **Color**: #666666
- **Line above**: Yes, 0.5pt gray
- **Margin from bottom**: 0.5 inch

印章和标签

印章选项
## Document Stamps

### Preset Stamps
| Stamp | Style | Color |
|-------|-------|-------|
| APPROVED | ✓ Checkmark | Green |
| REJECTED | ✗ X mark | Red |
| REVIEWED | ○ Circle | Blue |
| PENDING | △ Triangle | Yellow |
| FINAL | ▢ Box | Black |

### Custom Stamp
- **Text**: SIGNED
- **Date**: Include date below
- **Name**: Include name line
- **Style**: Official stamp look
Bates 编号
## Bates Numbering (Legal)

### Configuration
- **Prefix**: ABC-
- **Start**: 000001
- **Suffix**: -2026
- **Position**: Bottom right

### Example
ABC-000001-2026
ABC-000002-2026
ABC-000003-2026
...

### Across Multiple Documents
| Document | Start | End |
|----------|-------|-----|
| doc1.pdf (50 pages) | ABC-000001 | ABC-000050 |
| doc2.pdf (30 pages) | ABC-000051 | ABC-000080 |
| doc3.pdf (25 pages) | ABC-000081 | ABC-000105 |

批量处理

批量添加水印任务
## Batch Watermark Application

### Input
- **Folder**: /documents/contracts/
- **Files**: 25 PDFs
- **Total Pages**: 450

### Watermark Settings
- **Type**: Text
- **Text**: CONFIDENTIAL
- **Style**: Diagonal, 30% opacity, red

### Progress
| File | Pages | Status |
|------|-------|--------|
| contract_001.pdf | 15 | ✅ Complete |
| contract_002.pdf | 22 | ✅ Complete |
| contract_003.pdf | 18 | ⏳ Processing |
| ... | ... | ... |

### Results
- Processed: 25/25 files
- Total pages watermarked: 450
- Output folder: /documents/contracts_watermarked/

输出示例

水印报告
## Watermark Application Report

### Document
- **Input**: quarterly_report.pdf
- **Output**: quarterly_report_watermarked.pdf
- **Pages**: 45

### Applied Elements
| Element | Details | Pages |
|---------|---------|-------|
| Watermark | "CONFIDENTIAL" diagonal | All |
| Logo | Company logo, bottom-right | All |
| Page numbers | "Page X of Y", footer center | 2-45 |
| Header | Title + Date | All |
| Footer | Copyright notice | All |

### Verification
- [ ] Watermark visible but not obscuring content
- [ ] Page numbers sequential and correct
- [ ] Headers/footers properly positioned
- [ ] No content overlap issues

工具推荐

在线工具
  • SmallPDF:轻松添加水印
  • ILovePDF:页码功能出色
  • PDF24:免费且可配置
  • Sejda:选项丰富
桌面软件
  • Adobe Acrobat Pro:完全掌控
  • Foxit PDF Editor:功能出色
  • PDF-XChange:选项丰富
  • Preview (Mac):仅提供基本功能
编程工具
  • pdf-lib (JavaScript):完全掌控
  • PyPDF2 (Python):基本水印功能
  • iText (Java/.NET):专业级
  • PDFBox (Java):选项丰富

局限性

  • 无法实际执行水印操作(仅提供指导)
  • 图片水印需要适当的分辨率
  • 某些受保护的 PDF 会禁止修改
  • 复杂水印可能会增大文件体积
  • 水印位置可能因页面尺寸不同而变化
  • 字体可用性会影响文本水印

评论

支持 Markdown