Replace Text with Image in Power Automate
PDF4me Replace Text with Image action substitutes specific text strings with images in PDF documents through Power Automate workflows. This dynamic replacement feature enables swapping text placeholders with logos, signatures, graphics, and visual elements, supporting extract text and image options for comprehensive content management, perfect for template customization, brand element insertion, and dynamic visual content across Microsoft 365 workflows.
Authenticating Your API Request
To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful text-to-image replacement services.

Key Features
- Text-to-Image Substitution: Replace text placeholders with images
- Dynamic Content: Insert logos, signatures, and graphics dynamically
- Extract Options: Optionally extract text and images during replacement
- Template Customization: Transform text-based templates with visual elements
- Batch Processing: Replace text in multiple documents automatically
Parameters
Complete list of parameters for the Replace Text with Image action. Configure these parameters to control text replacement.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| File Content*** | Binary | Source PDF File Content • Map PDF file from source action • PDF must contain target text to replace • Supports PDFs from SharePoint, OneDrive, email • Can be dynamically retrieved from flows | [File Content from Get File] |
| File Name*** | String | PDF Document Name • Input file name from source • Used for processing identification • Should include .pdf extension • Supports dynamic naming | Template.pdf |
| Extract Text | Boolean | Text Extraction Option • True - Extract text during processing • False - Skip text extraction • Useful for validation and logging • Default is False | true |
| Extract Images | Boolean | Image Extraction Option • True - Extract images during processing • False - Skip image extraction • Useful for asset collection • Default is False | false |
Output
The PDF4me Replace Text with Image action returns comprehensive output data for seamless Power Automate flow integration:
- Table
- JSON
- Flow Integration
Table View
Response data in a structured table format:
| Parameter | Type | Description |
|---|---|---|
| Texts | Array of Strings | Extracted text content if extraction enabled |
| Images | Array of Objects | Extracted images if extraction enabled |
| File Name | String | Output file name after replacement |
| File Content | Binary | PDF file content with text replaced by images |
JSON Response Format
{
"Texts": ["Extracted text..."],
"Images": [{"ImageData": "[Base64]"}],
"File Name": "Template_Final.pdf",
"File Content": "[Binary Content]"
}
Power Automate Flow Usage
Use processed PDF in subsequent actions:
- Email Distribution: Send PDFs with visual elements inserted
- SharePoint Storage: Save customized documents to libraries
- Client Delivery: Provide branded documents with images
- Print Services: Send print-ready PDFs with graphics
- Archive Storage: Store finalized visual documents
- Further Processing: Apply additional PDF operations
Workflow Examples
The PDF4me Replace Text with Image action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Logo Insertion
- Signature Insertion
- Certificate Graphics
- Marketing Personalization
Automated Template Logo Replacement Workflow
Transform document templates with automated logo insertion:
Complete Workflow Steps:
- Trigger: Report generated from text-based template
- Get Report: Retrieve PDF with "[COMPANY_LOGO]" text placeholder
- Get Logo: Fetch company logo image from assets library
- Replace Text: Substitute "[COMPANY_LOGO]" with actual logo image
- Validate Placement: Check logo appears correctly
- Add Branding: Apply additional brand elements
- Email Distribution: Send branded report to stakeholders
- Archive Final: Store fully branded document
Business Benefits:
- Brands 75+ template documents monthly automatically
- Eliminates manual logo insertion in templates
- Ensures consistent brand application
- Reduces document finalization time by 80%
Automated Signature Placeholder Replacement
Streamline signing with automated signature image insertion:
Complete Workflow Steps:
- Trigger: Contract approved and ready for signature
- Get Contract: Retrieve contract with "[SIGNATURE]" placeholder
- Get Authority Signature: Fetch authorized signature image
- Replace Placeholder: Substitute "[SIGNATURE]" with actual signature
- Add Date: Include signing date near signature
- Protect Document: Apply password protection
- Email Parties: Send signed contract to all stakeholders
- Archive Signed: Store executed contract
Business Benefits:
- Signs 60+ contracts monthly with image replacement
- Automates signature application workflow
- Reduces contract execution time from days to minutes
- Maintains consistent signature appearance
Automated Certificate Graphic Insertion Workflow
Optimize certificates with automated graphic element replacement:
Complete Workflow Steps:
- Trigger: Student completes course in LMS
- Get Template: Retrieve certificate template with "[SEAL]" text
- Get Official Seal: Fetch institution seal image
- Replace Text: Substitute "[SEAL]" with official seal
- Add Student Data: Populate student name and course
- Add Signature: Replace "[SIGNATURE]" with director signature
- Email Student: Send completed certificate
- Archive Certificate: Store issued certificate
Business Benefits:
- Issues 200+ certificates monthly with automated graphics
- Provides professional appearance with official seals
- Eliminates manual graphic insertion
- Accelerates certificate issuance by 90%
Automated Marketing Material Personalization
Enhance marketing with automated visual element insertion:
Complete Workflow Steps:
- Trigger: Personalized brochure generation for VIP client
- Get Template: Retrieve brochure with "[CLIENT_LOGO]" placeholder
- Get Client Logo: Fetch client's company logo from CRM
- Replace Placeholder: Substitute with client logo image
- Add Personalization: Insert client-specific graphics
- Generate Preview: Create preview for approval
- Email Sales Rep: Send personalized brochure
- Archive Custom: Store client-specific version
Business Benefits:
- Creates 40+ personalized brochures monthly
- Enables client-specific branding in materials
- Increases client engagement by 55%
- Reduces personalization time from 2 hours to 5 minutes
Industry Use Cases & Applications
- Corporate & Business
- Legal & Professional Services
- Education & Training
- Marketing & Communications
Corporate & Business Use Cases
- Template Branding: Replace logo placeholders in document templates
- Signature Insertion: Substitute signature text with signature images
- Brand Element Insertion: Replace text markers with brand graphics
- Document Customization: Insert client-specific visual elements
Legal & Professional Services Use Cases
- Seal Insertion: Replace text with official firm seals
- Signature Application: Substitute signature placeholders
- Logo Branding: Insert firm logos in templates
- Stamp Application: Replace text with official stamps
Education & Training Use Cases
- Certificate Seals: Replace seal placeholders with official seals
- Authority Signatures: Insert director signatures
- Institution Logos: Replace logo text with actual logos
- Award Graphics: Insert award and achievement graphics
Marketing & Communications Use Cases
- Brand Personalization: Insert client logos in materials
- Campaign Graphics: Replace placeholders with campaign visuals
- Co-Branding: Insert partner logos in co-branded materials
- Dynamic Content: Substitute text with contextual images