Skip to main content

Add Image Stamp to PDF using n8n action

PDF4me Add Image Stamp to PDF adds custom image stamps and watermarks to PDF documents through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to insert images (logos, signatures, seals, watermarks) with precise positioning, customizable sizing, transparency control, rotation angles, page-specific targeting, and flexible alignment options. This solution is ideal for document branding, confidential document marking, watermarking, logo placement, security stamps, and automated document enhancement workflows that require professional image integration with accurate rendering and seamless integration.

Setup

Add the PDF4me "Add Image Stamp to PDF" 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 Image Stamp to PDF" action
  3. Configure input parameters (see below)
Add Image Stamp to PDF

Parameters

Complete list of parameters for the Add Image Stamp to PDF action. Configure these parameters to control image stamp addition.

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

ParameterTypeDescriptionExample
Input Data Type***StringPDF Input Format Selection
• Choose the format of your PDF data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Input Binary FieldBinaryBinary PDF File Input (Required if Binary Data)
• Reference PDF file from previous n8n node or file upload
• PDF4me processes binary PDF files with automatic format detection
• Required when Input Data Type is "Binary Data"
{{ $binary.data }}
Base64 Document ContentStringBase64 Encoded PDF Input (Required if Base64 String)
• Provide PDF data as base64 encoded string
• PDF4me automatically decodes and processes the PDF content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
File URLStringPublic PDF URL Input (Required if URL)
• Provide a public/open permission URL to the PDF file
• PDF4me downloads and processes the file from URL
• Required when Input Data Type is "URL"
https://abc.com/sample.pdf
Image File Content***Base64Base64 Encoded Image Input
• Provide image data (.png, .jpeg) as base64 encoded string
• PDF4me decodes and processes with advanced compression
• Essential for professional document stamping workflows
/9j/4AAQSk...
Image File Name***StringImage Stamp Filename
• Specify the name of the image file
• Must include proper extension (.png or .jpeg)
• PDF4me validates file format compliance
stamp.png
Align Horizontal***StringHorizontal Alignment
• Choose horizontal positioning on the page
• Options: Left, Center, Right
• PDF4me ensures precise alignment
• Essential for professional presentation
Center
Align Vertical***StringVertical Alignment
• Choose vertical positioning on the page
• Options: Top, Middle, Bottom
• PDF4me provides pixel-perfect positioning
• Essential for consistent branding
Middle
Pages***StringPage Specification
• Define which pages should have the image stamp
• Supports: single pages (0,1,2), ranges (2-5), mixed (1,2,3-7), open (2-)
• If not specified, processes all pages
• Examples: "0,1,2" or "2-5" or "1,2,3-7" or "2-"
0,1,2 or 2-5
Margin Horizontal In mm***StringHorizontal Margin in Millimeters
• Set the horizontal margin in millimeters
• Applied on both left and right sides
• Precise millimeter-based positioning
• Essential for print-ready output
20
Margin Vertical In mm***StringVertical Margin in Millimeters
• Set the vertical margin in millimeters
• Applied above and below the image stamp
• Ensures consistent vertical spacing
• Essential for professional appearance
20
Margin Horizontal In px***StringHorizontal Margin in Pixels
• Set the horizontal margin in pixels
• Defines space on left and right sides
• Pixel-perfect positioning for digital workflows
• Alternative to millimeter-based
10
Margin Vertical In px***StringVertical Margin in Pixels
• Set the vertical margin in pixels
• Defines space on top and bottom sides
• Pixel-level precision for digital documents
• Alternative to millimeter-based
10
Opacity***StringStamp Transparency Control
• Set opacity level from 0 to 100
• 0 = entirely transparent, 100 = full opacity
• Creates watermark effects and layered elements
• Essential for professional visual impact
100
Height in mm***StringImage Height in Millimeters
• Set image height in millimeters
• If set to 0, uses default or maintains aspect ratio
• Precise sizing for print-ready documents
• Essential for professional standards
60
Width in mm***StringImage Width in Millimeters
• Set image width in millimeters
• If set to 0, uses default or maintains aspect ratio
• Accurate dimensioning for consistent branding
• Essential for print formats
60
Height in px***StringImage Height in Pixels
• Set height in pixels for digital positioning
• Pixel-perfect height control
• For web-based document workflows
• Alternative to millimeter-based
60
Width in px***StringImage Width in Pixels
• Set width in pixels for digital sizing
• Pixel-perfect width control
• For screen-optimized documents
• Alternative to millimeter-based
60
isBackground***BooleanBackground Layer Control
• Indicate whether stamp should be in background (true) or foreground (false)
• Advanced layer management for watermarks
• Creates professional visual hierarchy
• Essential for stamp positioning
true
showOnlyInPrint***BooleanPrint Visibility Control
• Determine if stamp visible only in printed/exported versions (true)
• Advanced visibility control for print-only watermarks
• Creates screen-optimized document presentation
• Useful for confidential stamps
false
Output File Name***StringEnhanced PDF Output Filename
• Specify the name for the generated PDF file
• Must include .pdf extension
• PDF4me ensures unique naming and format validation
document_with_image_stamp.pdf
Document Name***StringSource PDF Reference
• Specify the name of the source PDF file
• For reference and tracking purposes
• Helps with processing tracking
document.pdf
Debug ModeBooleanDebugging Control
• Enable detailed logging and debugging information
• Useful for troubleshooting image stamp issues
• Default is false
false
Binary Data Output Name***StringBinary Data Output Mapping
• Define the variable name for accessing generated PDF binary data
• Used in subsequent workflow actions
• Essential for workflow automation
data

Supported Image Formats

FormatDescriptionFile ExtensionsMax SizeUse Cases
PNGPortable Network Graphics with advanced transparency support and lossless compression.png50MBWatermarks, logos, stamps with transparency, professional branding
JPEGJoint Photographic Experts Group with optimized compression for photographic content.jpg, .jpeg50MBPhotographic stamps, detailed images, high-quality document branding

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringPDF4me generated PDF filename - The complete filename of the successfully generated PDF document with proper .pdf extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processesdocument_with_image_stamp.pdf
fileSizeNumberPDF4me PDF file size in bytes - The exact size of the generated PDF file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation125430
successBooleanPDF4me image stamp status indicator - Boolean flag indicating the success or failure of the image stamp addition process. PDF4me returns true for successful operations and false for any errors, enabling robust error handling in automated workflowstrue
mimeTypeStringPDF4me output MIME type - MIME type of the generated PDF file, always "application/pdf" for PDF documents. Useful for content type validation and proper file handling in web applicationsapplication/pdf
messageStringPDF4me image stamp status message - Human-readable status message providing details about the image stamp addition process result. Includes success confirmation or error details for troubleshootingImage stamp added to PDF successfully

N8N Action Response

The PDF4me Add Image Stamp to PDF 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:

[
{
"success": true,
"message": "Image stamp added to PDF successfully",
"fileName": "document_with_image_stamp.pdf",
"mimeType": "application/pdf",
"fileSize": 125430
}
]

Use Cases

Document Branding and Corporate Identity

  • Add company logos, watermarks, and branding elements to PDF documents for corporate identity, brand consistency, and professional appearance
  • Process business documents, reports, and presentations by adding branded stamps to ensure consistent corporate identity and professional presentation
  • Transform client documents, proposals, and marketing materials by adding company logos and branding elements for brand recognition and professional credibility

Document Security and Authentication

  • Add security stamps, authentication marks, and verification logos to PDF documents for document security, authenticity verification, and fraud prevention
  • Process legal documents, contracts, and official records by adding security stamps to ensure document integrity and prevent unauthorized modifications
  • Transform sensitive documents, confidential reports, and classified materials by adding security stamps for access control and document protection

Document Status and Workflow Management

  • Add status stamps, approval marks, and workflow indicators to PDF documents for process tracking, approval workflows, and document management
  • Process invoices, purchase orders, and business documents by adding status stamps to indicate processing stages, approvals, and workflow progress
  • Transform project documents, reports, and deliverables by adding status stamps for project management, progress tracking, and stakeholder communication

Get Help