API V2

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, Required
Default: bottomleft

You can select any one value -

  • topright
  • topleft
  • bottomright
  • bottomleft
  • centralhorizontal
  • diagonal
  • centralvertical
  • custom
Text Font Familystring, Required
Default: 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 Boldboolean
Default: false

You can select any one value -
true
false

Is Underlineboolean, Required
Default: false

You can select any one value -
true
false

Is Italicboolean, Required
Default: 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 Anglefloat
Default: 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 Yfloat
Default: 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