Skip to main content

Add Text Watermark to Image - Branding API

PDF4me Add Text Watermark To Image is a powerful enterprise-grade solution that adds text watermarks to images through advanced API integration. This comprehensive text watermarking service efficiently processes image files, overlaying text watermarks with custom fonts, colors, positioning, rotation, and advanced image processing capabilities for enhanced image branding and protection. The API processes text watermarking by receiving source images and text parameters through REST API calls, utilizing advanced text rendering technology and intelligent positioning algorithms for accurate text placement and professional image enhancement. With comprehensive support for custom fonts, flexible positioning, color control, text formatting, and professional image processing, this solution is ideal for image branding, content protection, automated text watermarking, and enterprise image workflows that require reliable text watermarking with guaranteed accuracy and consistent output quality. Add Text Watermark To Image documents easily with API for advanced image processing and branding.

Authenticating Your API Request

To access the PDF4me REST API, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user of the REST API.

Key Features

  • Text Watermarking: Add text watermarks to images with custom fonts and styling
  • Flexible Positioning: Support for multiple positioning options including corners, center, and custom coordinates
  • Font Customization: Support for custom font families, sizes, and text formatting
  • Color Control: Custom text colors and opacity settings for professional branding
  • Text Formatting: Support for bold, italic, underline, and other text styling options
  • Professional Results: High-quality text watermarking with accurate positioning and rendering
  • Seamless API Integration: RESTful API designed for automated image processing workflows and enterprise system integration

REST API Endpoint

The PDF4me REST API uses standard HTTP methods to interact with resources. All text watermarking operations are performed through a single endpoint:

  • Method: POST
  • Endpoint: /api/v2/AddTextWatermarkToImage

Supported Text Watermarking Features

The API provides comprehensive support for various text watermarking and processing capabilities:

Text Rendering

  • Custom Fonts: Support for various font families and text styling options
  • Font Sizing: Adjustable text size for optimal visibility and branding
  • Text Formatting: Bold, italic, underline, and other text styling capabilities
  • Color Control: Custom text colors and opacity for professional branding
  • Professional Results: High-quality text rendering with accurate font handling
  • Advanced Processing: Support for complex text layouts and formatting

Positioning and Layout

  • Multiple Position Options: Support for corners, center, diagonal, and custom positioning
  • Precise Coordinates: Custom X and Y positioning for pixel-perfect text placement
  • Rotation Support: Custom rotation angles for text orientation
  • Flexible Layout: Support for various image sizes and text arrangements
  • Professional Layout: High-quality text positioning with accurate placement

Advanced Features

  • Custom Positioning: Precise coordinate-based positioning for exact text placement
  • Opacity Control: Adjustable transparency for text visibility and blending
  • Professional Enhancement: High-quality image enhancement with text integration
  • Flexible Options: Customizable processing parameters for specific requirements

REST API Parameters

Complete list of parameters for the Add Text Watermark To Image REST API. Parameters are organized by category for better understanding and implementation.

Important: Parameters marked with an asterisk (*) are required and must be provided for the API to function correctly.

Required Parameters

ParameterTypeDescriptionExample
File Name*StringThe source image filename with proper file extension for text watermarking operations. This parameter identifies the input image for text overlay processing, image enhancement, and branding workflows. Required for image identification and processing pipeline management in text watermarking operations.stamp.jpg
File Content*Base64The complete content of the source image encoded in Base64 format for text watermarking processing. This parameter contains the entire image data required for text overlay, image processing, and branding workflows. Essential for secure image handling and API-based text watermarking operations.JVBERi...
Watermark Text*StringThe text content to be overlaid as a watermark on the image. This parameter specifies the text string that will be rendered and positioned on the image for branding, protection, or identification purposes. Supports any text content including company names, copyright notices, or custom messages for image watermarking workflows.France
Text Position*StringSelect the text positioning option for image overlay operations. Choose from topright, topleft, bottomright, bottomleft, centralhorizontal, diagonal, centralvertical, or custom. This parameter determines the text placement strategy and ensures proper positioning for image branding and protection workflows.bottomleft
Text Font Family*StringSpecify the font family for text rendering in image watermarking operations. This parameter controls the typography and visual appearance of the text watermark. Use standard font names like Arial, Times New Roman, or custom fonts for professional text rendering and branding consistency.Arial
Is Underline*BooleanEnable or disable underline formatting for text watermark rendering. Set to 'true' to add underline to the text, or 'false' for normal formatting. This parameter provides additional text styling options for enhanced visibility and professional branding in image watermarking workflows.false
Is Italic*BooleanEnable or disable italic formatting for text watermark rendering. Set to 'true' to make the text italic, or 'false' for normal formatting. This parameter provides text styling control for enhanced visual appeal and professional branding in image watermarking workflows.false

Optional Parameters

ParameterTypeDescriptionExample
Text Font SizeIntegerSet the font size for text rendering in image watermarking operations. This parameter controls the size and visibility of the text watermark. Use appropriate font sizes based on image dimensions and branding requirements for optimal text visibility and professional appearance.30
Text ColourStringSpecify the text color for watermark rendering in image processing operations. This parameter controls the color and visual appearance of the text watermark. Use hex color codes (e.g., #b4351a) or color names for custom text coloring and professional branding consistency.#b4351a
Is BoldBooleanEnable or disable bold formatting for text watermark rendering. Set to 'true' to make the text bold, or 'false' for normal weight. This parameter provides text styling control for enhanced visibility and professional branding in image watermarking workflows.false
OpacityFloatSet the transparency level for the text watermark overlay in image processing operations. This parameter controls the visibility and blending of the text with the source image. Use values between 0.0 (completely transparent) and 1.0 (completely opaque) for optimal text integration and professional image enhancement.1
Rotation AngleFloatSet the rotation angle for the text watermark overlay in image processing operations. This parameter controls the orientation and angle of the text placement. Use values in degrees (0-360) for custom text orientation and professional image branding with rotated text watermarks.0
Position XFloatSpecify the exact horizontal coordinate for custom text positioning in image processing operations. This parameter enables precise pixel-level positioning when using custom positioning mode. Use decimal values for accurate placement and professional text integration in image branding workflows.272.0
Position YFloatSpecify the exact vertical coordinate for custom text positioning in image processing operations. This parameter enables precise pixel-level positioning when using custom positioning mode. Use decimal values for accurate placement and professional text integration in image branding workflows.0

Output

The PDF4me Add Text Watermark To Image REST API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

{
"File Content": "Output file content from the PDF4me Connect"
}

Request Example

Content-Type: application/json
Authorization: YOUR_API_KEY

Note: Get your API key from the PDF4me Dashboard

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
}

Code Samples

The PDF4me Add Text Watermark To Image REST API provides code samples in multiple programming languages. Choose the language that best fits your development environment:

C# (CSharp) Sample

Complete C# implementation for adding text watermarks to images:

Text Watermarking Features

Text Rendering

  • Custom Fonts: Support for various font families and text styling options
  • Font Sizing: Adjustable text size for optimal visibility and branding
  • Text Formatting: Bold, italic, underline, and other text styling capabilities
  • Color Control: Custom text colors and opacity for professional branding
  • Professional Results: High-quality text rendering with accurate font handling
  • Advanced Processing: Support for complex text layouts and formatting

Positioning and Layout

  • Multiple Position Options: Support for corners, center, diagonal, and custom positioning
  • Precise Coordinates: Custom X and Y positioning for pixel-perfect text placement
  • Rotation Support: Custom rotation angles for text orientation
  • Flexible Layout: Support for various image sizes and text arrangements
  • Professional Layout: High-quality text positioning with accurate placement

Advanced Features

  • Custom Positioning: Precise coordinate-based positioning for exact text placement
  • Opacity Control: Adjustable transparency for text visibility and blending
  • Professional Enhancement: High-quality image enhancement with text integration
  • Flexible Options: Customizable processing parameters for specific requirements

Industry Use Cases & Applications

Use Cases

  • Image Branding: Add company names and branding text to images for brand protection
  • Content Protection: Watermark images with copyright notices and ownership information
  • Photography: Add photographer credits and copyright text to professional photography
  • Social Media: Brand images with custom text for social media marketing
  • E-commerce: Add product information and branding text to product images
  • Documentation: Add text labels and information to technical diagrams
  • Marketing: Brand marketing materials with custom text and messaging
  • Business Process Automation: Automate text watermarking workflows for enterprise operations

Get Help