add_text_watermark_to_image
Add a text watermark to an image with customizable position, font, color, opacity, and rotation. Specify image file and watermark text to protect or brand images.
Instructions
Add a text watermark to an image via PDF4me AddTextWatermarkToImage (/api/v2/AddTextWatermarkToImage). image_file_path, watermark_text, text_position (e.g. bottomleft, diagonal, custom), text_font_family, is_underline, is_italic; optional font size, colour, bold, opacity, rotation, position_x/y.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_file_path": "<image_file_path>",
"watermark_text": "<watermark_text>",
"text_position": "<text_position>"
},
"name": "add_text_watermark_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_bold | No | ||
| opacity | No | ||
| doc_name | No | ||
| is_italic | No | ||
| output_dir | No | ||
| position_x | No | ||
| position_y | No | ||
| text_colour | No | #000000 | |
| is_underline | No | ||
| text_position | Yes | ||
| rotation_angle | No | ||
| text_font_size | No | ||
| watermark_text | Yes | ||
| image_file_path | Yes | ||
| output_file_name | No | ||
| text_font_family | No | Arial |