Skip to main content

Add Text Watermark To Word Document using n8n action

PDF4me Add Text Watermark To Word Document enables adding customizable text watermarks to Word documents through n8n automation workflows with comprehensive styling and positioning control. This powerful text watermarking feature supports security labels, branding elements, confidentiality notices, and status markers with full control over text content, font family, font size, colors, rotation angles, orientation presets, and transparency levels, perfect for document security, brand protection, and status indication.

Setup

Add the PDF4me "Add Text Watermark To Word Document" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Add Text Watermark To Word Document" action
  3. Configure input parameters (see below)
Add Text Watermark To Word Document

Parameters

Complete list of parameters for the Add Text Watermark To Word Document action. Configure these parameters to control text watermark appearance and styling.

Important: Parameters marked with an asterisk (***) are required. Advanced parameters provide fine-grained control over text styling and positioning.

ParameterTypeDescriptionExample
Input Data Type***StringWord Document Input Format Selection
• Choose the format of your Word document data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Input Binary Field***BinaryBinary Word File Input (Required if Binary Data)
• Reference Word file (.docx, .doc) from previous n8n node or file upload
• PDF4me processes binary Word files with automatic format detection
• Required when Input Data Type is "Binary Data"
{{ $binary.data }}
Base64 Word Content***StringBase64 Encoded Word Input (Required if Base64 String)
• Provide Word content (.docx, .doc) as base64 encoded string for secure transmission
• PDF4me automatically decodes and processes the Word content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
Word Document URL***StringPublic Word Document URL Input (Required if URL)
• Provide a public/open permission URL to the Word file (.docx, .doc) to be processed
• PDF4me downloads and processes the Word file from the provided URL
• Required when Input Data Type is "URL"
https://abc.com/document.docx
Word Document Name***StringWord Document Input Filename
• Specify the name of the input Word file with proper extension (.docx, .doc)
• PDF4me uses this for format detection and processing optimization
document.docx
Watermark Text***StringText Content for Watermark
• Text to display as watermark, cannot be null, empty, or whitespace only
• Supports any alphanumeric characters and symbols
• Examples: "CONFIDENTIAL", "DRAFT", "APPROVED"
CONFIDENTIAL
Orientation of The TextStringPredefined Text Orientation
• Horizontal - Text displayed horizontally (0°)
• Vertical - Text displayed vertically (90°)
• Diagonal - Text displayed diagonally (45°)
• Upside-Down - Text displayed upside-down (180°)
• Default: "Horizontal"
• Overrides Rotation parameter if provided
Diagonal
Font FamilyStringFont Family Name
• Font family to use for watermark text
• Common fonts: "Arial", "Calibri", "Times New Roman", "Helvetica"
• Default: "Arial"
Arial
Font SizeNumberFont Size in Points
• Font size for watermark text in points
• Range: 1 to 1000 points
• Default: 72 points
• Larger sizes create more prominent watermarks
72
Font ColorStringText Color
• Named colors: "Red", "Blue", "Green", "Black", "Gray"
• Hex format: "#FF0000", "#00FF00", "FF0000" (with or without #)
• RGB format: "RGB(255, 0, 0)" or "rgb(255,0,0)"
• 3-digit hex: "#F00" expands to "#FF0000"
• Default: "#808080" (semi-transparent gray)
#FF0000
Semi TransparencyBooleanTransparency Control
• Yes - Watermark opacity set to 50%
• No - Watermark opacity set to 100% (default)
• Creates subtle watermark effect when Yes
Yes
RotationNumberRotation Angle in Degrees
• Custom rotation angle for watermark text (0-360°)
• Allows precise control over rotation angle
• Default: 0 (no rotation)
• Used as fallback when Orientation is not provided
45
Culture NameStringDocument Culture/Locale
• Culture code for document processing (e.g., "en-US", "de-DE", "fr-FR")
• Default: null (no culture-specific processing)
en-US

Output

Output Parameters

The PDF4me Add Text Watermark To Word Document action returns an array containing an object with the following parameters:

ParameterTypeDescriptionExample
fileNameStringOutput Word Document Filename - Name of the generated Word document with text watermark applied, including file extensionword_with_watermark.docx
fileSizeNumberOutput File Size in Bytes - Size of the generated Word document in bytes14553
successBooleanOperation Status - Boolean flag indicating the success or failure of the text watermark application operation. Returns true for successful operations and false for any errorstrue
originalFileNameStringInput Document Filename - Name of the original input Word document that was processedmyWordFile.docx
watermarkTextStringApplied Watermark Text - The text content that was applied as the watermarkCONFIDENTIAL
orientationStringApplied Text Orientation - The orientation preset that was applied to the watermark text (Horizontal, Vertical, Diagonal, Upside-Down)Diagonal
fontFamilyStringApplied Font Family - The font family used for the watermark textArial
fontSizeNumberApplied Font Size - The font size in points used for the watermark text72
fontColorStringApplied Font Color - The color used for the watermark text, typically in hex format#808080
semiTransparentBooleanTransparency Setting - Indicates whether semi-transparency (50% opacity) was applied to the watermark. Returns true if semi-transparent, false if fully opaquetrue
rotationNumberApplied Rotation Angle - The rotation angle in degrees applied to the watermark text45
cultureNameStringDocument Culture/Locale - The culture code used for document processing (e.g., "en-US", "de-DE", "fr-FR"), or null if not specifieden-US
messageStringOperation Status Message - Descriptive message indicating the result of the operationText watermark added to Word file successfully

N8N Action Response

The PDF4me Add Text Watermark To Word Document 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:

[
{
"fileName": "word_with_watermark.docx",
"fileSize": 14553,
"success": true,
"originalFileName": "myWordFile.docx",
"watermarkText": "CONFIDENTIAL",
"orientation": "Diagonal",
"fontFamily": "Arial",
"fontSize": 72,
"fontColor": "#808080",
"semiTransparent": true,
"rotation": 45,
"cultureName": "en-US",
"message": "Text watermark added to Word file successfully"
}
]

Use Cases

Enterprise Document Automation

  • Document Security: Apply security labels and confidentiality notices
  • Brand Protection: Add company branding and status markers
  • Status Indication: Mark documents with status watermarks (DRAFT, APPROVED, etc.)
  • Document Distribution: Send watermarked documents to stakeholders

AI-Powered Document Processing

  • Multi-Format Support: Process Word documents in .docx and .doc formats
  • Multi-Language Processing: Support for different languages and regions
  • Intelligent Watermarking: Automatic watermark sizing and positioning

Business Intelligence and Analytics

  • Document Management: Organize documents with proper watermarking
  • Compliance Monitoring: Ensure documents meet security requirements
  • Performance Metrics: Track processing accuracy and efficiency

Get Help