Skip to main content

Replace Text with Image - Image Insertion for Zapier

PDF4me Replace Text with Image action enables replacing specified text with images in Word documents within Zapier workflows with advanced page filtering and size control options. This powerful text replacement service supports precise text matching with case-sensitive search, image insertion with customizable sizing and aspect ratio preservation, page-specific targeting (all, odd, even, first, last), specific page numbers/ranges, page exclusion capabilities, and flexible positioning control—perfect for document automation, template processing, logo insertion, signature placement, chart embedding, and dynamic content insertion workflows across cloud storage platforms and business applications.

Authenticating Your API Request

To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's powerful Word text replacement services.

Replace Text with Image Zapier

Key Features

  • Text-to-Image Replacement: Replace specific text strings with images throughout documents
  • Precise Text Matching: Case-sensitive text search and replacement
  • Image Size Control: Customize image dimensions with width and height parameters
  • Aspect Ratio Preservation: Maintain image proportions during resizing
  • Page Filtering: Target specific pages or page ranges for replacement
  • Advanced Filtering: Skip first page, target odd/even pages, or specify exact page numbers
  • Multiple Image Formats: Support for PNG, JPG, JPEG, BMP, GIF formats
  • Flexible Positioning: Insert images as Word shapes with precise positioning

Parameters

Complete list of parameters for the Replace action. Configure these parameters to control text replacement and image insertion behavior.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly. Advanced parameters provide fine-grained control over image sizing and page filtering.

ParameterTypeDescriptionExample
File Name***StringWord Document Name
• Filename with .docx or .doc extension
• Used for processing and output file identification
• Supports dynamic naming from Zap variables
• Output filename matches input filename
document.docx
Document***FileWord File Content
• Map from previous step (Drive/Dropbox/HTTP)
• Binary Word document for text replacement
• Must be valid Word format (.docx, .doc)
• Text replacement performed on this document
[File]
Search Text***StringText to Search and Replace
• Text string to search for in the document
Case-sensitive text matching
• All instances replaced with image
• Cannot be null or empty
• Common placeholders: "[LOGO]", "SIGN_HERE", "[SIGNATURE]", "{{PHOTO}}"
SIGN_HERE
Image Content***FileReplacement Image Content
• Binary content of the image file
• Map image from previous step or storage
• Supports PNG, JPG, JPEG, BMP, GIF formats
• PNG recommended for transparency support
• Must be valid image file
[Image File]
Image WidthNumberImage Width in Points
• Width of replacement image in points
• Optional - uses original width if not specified
• Must be positive value
• If only Width specified, Height auto-calculated (aspect ratio)
• Precise sizing control when combined with Height
200
Image HeightNumberImage Height in Points
• Height of replacement image in points
• Optional - uses original height if not specified
• Must be positive value
• If only Height specified, Width auto-calculated (aspect ratio)
• Precise sizing control when combined with Width
150
Maintain Aspect RatioBooleanPreserve Image Proportions
Yes - Maintains original aspect ratio when resizing (default)
No - Uses exact width/height (may distort)
• When Yes, one dimension calculated to preserve proportions
• When No, both dimensions used exactly as specified
Yes
Skip First PageBooleanSkip Replacement on First Page
Yes - Skip text replacement on first page
No - Include first page (default)
• Useful when first page is cover/title page
• Applied before other page filtering
No
Apply To PagesStringApply to Specific Page Types
"all" - Apply to all pages (default)
"odd" - Odd-numbered pages only
"even" - Even-numbered pages only
"first" - First page only
"last" - Last page only
• Advanced targeting option
all
Page NumbersStringSpecific Page Numbers or Ranges
• Comma-separated page numbers or ranges
• Examples: "1,3,5", "2-4,6,8-10", "1,3,5-7"
• Combined with Apply To Pages for precise targeting
• Invalid page numbers silently ignored
1,3,5-7
Ignore Page NumbersStringPage Numbers to Exclude
• Comma-separated page numbers to skip
• Applied after other page filtering
• Examples: "2,4", "1,3,5"
• Useful for excluding cover or specific sections
2,4
Culture NameStringDocument Culture/Locale
• Culture code for document processing
• Examples: "en-US", "de-DE", "fr-FR"
• Default: null
• Affects document language and metadata
en-US

Output

The PDF4me Replace Text with Image action returns comprehensive output data for seamless Zapier workflow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
FileURLDirect URL to access the Word with text replaced by image
File NameStringThe filename without extension
Full File NameStringComplete filename with .docx extension
File ExtensionStringFile extension (.docx)

Scenario Examples

The PDF4me Replace Text with Image action in Zapier provides comprehensive scenario templates designed for real-world template processing needs:

Automated Logo Placeholder Replacement Workflow

Replace logo placeholders with company logos automatically:

Complete Scenario Steps:

  1. Trigger: New proposal generated from template
  2. Get Proposal Template: Retrieve template with [LOGO] placeholder from library
  3. Get Company Logo: Fetch company logo PNG from assets folder
  4. Replace Logo Placeholder: Set Search Text = "[LOGO]"
  5. Set Logo Image: Map company logo to Image Content parameter
  6. Set Sizing: Image Width = 150, Maintain Aspect Ratio = Yes
  7. Apply to All Pages: Apply To Pages = "all" for consistent branding
  8. Skip Cover Page: Skip First Page = Yes if cover has different logo
  9. Upload Branded Proposal: Save to proposals folder with logo inserted
  10. Email Sales Team: Send ready-to-send proposal with branding

Business Benefits:

  • Brands 100+ proposals monthly automatically
  • Consistent logo sizing and placement across documents
  • Aspect ratio preservation maintains logo quality
  • Eliminates manual logo insertion saving 10 minutes per proposal

Industry Use Cases & Applications

  • Logo Insertion: Replace [LOGO] placeholders with company logos in proposal and report templates
  • Chart Embedding: Insert dynamically generated performance charts into monthly report templates
  • Signature Placement: Replace SIGN_HERE placeholders with authorized signature images in contracts
  • Product Images: Add product photos to specification templates replacing image placeholders
  • Brand Asset Population: Insert brand imagery (logos, icons, stamps) into marketing materials

Get Help