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