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.

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.
| Parameter | Type | Description | Example |
|---|---|---|---|
| File Name*** | String | Word 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*** | File | Word 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*** | String | Text 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*** | File | Replacement 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 Width | Number | Image 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 Height | Number | Image 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 Ratio | Boolean | Preserve 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 Page | Boolean | Skip 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 Pages | String | Apply 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 Numbers | String | Specific 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 Numbers | String | Page 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 Name | String | Document 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
- JSON
- Zap Integration
Table View
Response data in a structured table format:
| Parameter | Type | Description |
|---|---|---|
| File | URL | Direct URL to access the Word with text replaced by image |
| File Name | String | The filename without extension |
| Full File Name | String | Complete filename with .docx extension |
| File Extension | String | File extension (.docx) |
JSON Response Format
The raw JSON response from the action:
{
"File": "https://...",
"File Name": "document",
"Full File Name": "document.docx",
"File Extension": ".docx"
}
Zapier Workflow Usage
Use documents with inserted images in subsequent modules:
- Template Population: Replace logo placeholders with actual logos
- Certificate Generation: Insert signatures and seals in certificates
- Personalized Documents: Add recipient-specific images (photos, signatures)
- Report Generation: Insert charts and graphs in report templates
Scenario Examples
The PDF4me Replace Text with Image action in Zapier provides comprehensive scenario templates designed for real-world template processing needs:
- Logo Insertion
- Signature Insertion
- Chart Embedding
Automated Logo Placeholder Replacement Workflow
Replace logo placeholders with company logos automatically:
Complete Scenario Steps:
- Trigger: New proposal generated from template
- Get Proposal Template: Retrieve template with [LOGO] placeholder from library
- Get Company Logo: Fetch company logo PNG from assets folder
- Replace Logo Placeholder: Set Search Text = "[LOGO]"
- Set Logo Image: Map company logo to Image Content parameter
- Set Sizing: Image Width = 150, Maintain Aspect Ratio = Yes
- Apply to All Pages: Apply To Pages = "all" for consistent branding
- Skip Cover Page: Skip First Page = Yes if cover has different logo
- Upload Branded Proposal: Save to proposals folder with logo inserted
- 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
Automated Signature Placement Workflow
Insert authorized signatures in contract templates automatically:
Complete Scenario Steps:
- Trigger: Contract finalized and ready for signature
- Get Contract Template: Retrieve contract with SIGN_HERE placeholder
- Get Authorized Signature: Fetch signature image from secure vault
- Replace Signature Placeholder: Set Search Text = "SIGN_HERE"
- Set Signature Image: Map signature PNG to Image Content
- Set Exact Dimensions: Width = 200, Height = 50 for consistent signature size
- Maintain Proportions: Maintain Aspect Ratio = No for exact dimensions
- Apply to Last Page: Apply To Pages = "last" (signature page only)
- Upload Signed Contract: Save to executed contracts folder
- Email Parties: Send executed contract to all parties
Business Benefits:
- Signs 80+ contracts monthly automatically
- Consistent signature size and appearance across contracts
- Last page filtering ensures signature only on signature page
- Reduces contract execution time from 2 days to 2 minutes
Automated Chart Insertion Workflow
Insert dynamically generated charts in report templates:
Complete Scenario Steps:
- Trigger: Monthly data analysis completed
- Query Database: Get monthly performance data from SQL
- Generate Chart: Create chart image from data using charting API
- Get Report Template: Retrieve template with {{CHART}} placeholder
- Replace Chart Placeholder: Set Search Text = "{{CHART}}"
- Set Chart Image: Map generated chart to Image Content
- Set Chart Size: Width = 400, Height = 300 for report layout
- Target Data Pages: Page Numbers = "5-10" (analysis section only)
- Upload Report: Save populated report to Google Drive
- Email Management: Send monthly report with embedded charts
Business Benefits:
- Generates 12 monthly reports annually with dynamic charts
- Chart images generated from live data automatically
- Page filtering ensures charts only in analysis section
- Eliminates manual chart insertion and sizing saving 45 minutes per report
Industry Use Cases & Applications
- Corporate & Business
- Human Resources
- Sales & Marketing
- Legal & Professional
- 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
- Employee Badge Generation: Replace {{PHOTO}} placeholders with employee headshots in badge templates
- Certificate Population: Insert company seals and manager signatures in employee certificates
- ID Card Creation: Add employee photos to ID card templates replacing photo placeholders
- Offer Letter Signatures: Insert hiring manager signature images in offer letter templates
- Award Certificates: Add recipient photos and authorized signatures to recognition certificates
- Proposal Personalization: Insert client logos in proposal templates for co-branded appearance
- Product Documentation: Add product images to specification documents replacing placeholders
- Case Study Population: Insert client logos and project screenshots in case study templates
- Presentation Materials: Add charts and graphs to presentation supporting documents
- Sales Collateral: Insert product images and feature graphics in sales material templates
- Contract Signatures: Insert authorized signature images in contract templates at SIGN_HERE markers
- Seal Application: Add company seals and notary stamps to legal document templates
- Evidence Insertion: Add exhibit images to legal brief templates replacing exhibit placeholders
- Stamped Documents: Insert court stamps and filing marks in legal documents
- Authenticated Documents: Add authentication seals and official signatures to formal documents