Skip to main content

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.

Replace Text with Image Power Automate

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.

ParameterTypeDescriptionExample
File Content***BinarySource 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***StringPDF Document Name
• Input file name from source
• Used for processing identification
• Should include .pdf extension
• Supports dynamic naming
Template.pdf
Extract TextBooleanText Extraction Option
True - Extract text during processing
False - Skip text extraction
• Useful for validation and logging
• Default is False
true
Extract ImagesBooleanImage 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 View

Response data in a structured table format:

ParameterTypeDescription
TextsArray of StringsExtracted text content if extraction enabled
ImagesArray of ObjectsExtracted images if extraction enabled
File NameStringOutput file name after replacement
File ContentBinaryPDF file content with text replaced by images

Workflow Examples

The PDF4me Replace Text with Image action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Template Logo Replacement Workflow

Transform document templates with automated logo insertion:

Complete Workflow Steps:

  1. Trigger: Report generated from text-based template
  2. Get Report: Retrieve PDF with "[COMPANY_LOGO]" text placeholder
  3. Get Logo: Fetch company logo image from assets library
  4. Replace Text: Substitute "[COMPANY_LOGO]" with actual logo image
  5. Validate Placement: Check logo appears correctly
  6. Add Branding: Apply additional brand elements
  7. Email Distribution: Send branded report to stakeholders
  8. 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%

Industry Use Cases & Applications

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

Get Help