Add Image watermark To Image
- Method: POST
- Endpoint: /api/v2/AddImageWatermarkToImage
Parameters
- File Namestring, Required
Name of the file
- File contentbase64, Required
The content of the input file
- Watermark File Namestring, Required
Name of the file.
- Watermark File Contentbase64, Required
The content of the input file
- Positionstring, RequiredDefault: diagonal
You can select any one value -
- topright
- topleft
- bottomright
- bottomleft
- centralhorizontal
- diagonal
- centralvertical
- custom
- Opacityfloat
You can take any value but it must be integer -
Example - 1.0
- Horizontal Offsetinteger
You can take any value but it must be integer -
Example - 0
- Vertical Offsetinteger
You can take any value but it must be integer -
Example - 0
- Position XfloatDefault: 0
You can take any value but it must be float.
Example - 0
- Position YfloatDefault: 0
You can take any value but it must be float.
Example - 0
- RotationfloatDefault: 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",
"WatermarkFileName": "stamp.jpg",
"WatermarkFileContent": "Please put image base64 content",
"Position": "diagonal",
"Opacity": 1.0,
"PositionX": 0,
"PositionY": 0,
"Rotation": 0
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda