Add Text watermark To Image
- Method: POST
- Endpoint: /api/v2/AddTextWatermarkToImage
Parameters
- File Namestring, Required
Name of the file
- File contentbase64, Required
The content of the input file
- Watermark Textstring, Required
You can take any value but it must be string
Example - France
- Text Positionstring, RequiredDefault: bottomleft
You can select any one value -
- topright
- topleft
- bottomright
- bottomleft
- centralhorizontal
- diagonal
- centralvertical
- custom
- Text Font Familystring, RequiredDefault: Arial
You can take any value but it must be string.
Example - Arial
- Text Font Sizeinteger
You can take any value but it must be integer.
Example - 30
- Text Colourstring
You can take any value but it must be string.
Example - #b4351a
- Is BoldbooleanDefault: false
You can select any one value -
true
false
- Is Underlineboolean, RequiredDefault: false
You can select any one value -
true
false
- Is Italicboolean, RequiredDefault: false
You can select any one value -
true
false
- Opacityfloat
You can take any value but it must be float.
Example - 0.1 to 1
- Rotation AnglefloatDefault: 0
You can take any value but it must be float.
Example - 0
- Position Xfloat
You can take any value but it must be float.
Example - 272.0
- Position YfloatDefault: 0
You can take any value but it must be float.
Example - 0
Output
- File ContentBinary
Output file content from the PDF4me Connect
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docName": "stamp.jpg",
"docContent": "Please put image base64 content",
"WatermarkText": "France",
"TextPosition": "bottomleft",
"TextFontFamily": "Arial",
"TextFontSize": 30,
"TextColour": "#b4351a",
"IsBold": false,
"IsUnderline": false,
"IsItalic": false,
"Opacity": 1,
"RotationAngle": 0,
"PositionX": 272.0,
"PositionY": 0
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda