add_watermark
Add customizable text or image watermarks to PDF documents using priority-based options, ensuring document security and branding in a single step.
Instructions
Add watermarks to PDF documents. Supports both text and image watermarks. Priority: user text > user image > environment variable image > default text "doc-ops-mcp"
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pdfPath | Yes | PDF file path | |
watermarkImage | No | Watermark image path (PNG/JPG). Has higher priority than environment variable but lower than watermarkText. | |
watermarkImageOpacity | No | Image opacity | |
watermarkImagePosition | No | fullscreen | |
watermarkImageScale | No | Image scale ratio | |
watermarkText | No | Watermark text content. Has highest priority. If not provided, will use image or default text "doc-ops-mcp". |
Input Schema (JSON Schema)
{
"properties": {
"pdfPath": {
"description": "PDF file path",
"type": "string"
},
"watermarkImage": {
"description": "Watermark image path (PNG/JPG). Has higher priority than environment variable but lower than watermarkText.",
"type": "string"
},
"watermarkImageOpacity": {
"default": 0.3,
"description": "Image opacity",
"type": "number"
},
"watermarkImagePosition": {
"default": "fullscreen",
"enum": [
"top-left",
"top-right",
"bottom-left",
"bottom-right",
"center",
"fullscreen"
],
"type": "string"
},
"watermarkImageScale": {
"default": 0.25,
"description": "Image scale ratio",
"type": "number"
},
"watermarkText": {
"description": "Watermark text content. Has highest priority. If not provided, will use image or default text \"doc-ops-mcp\".",
"type": "string"
}
},
"required": [
"pdfPath"
],
"type": "object"
}