Replace Text with Image - Image Insertion for Zapier
PDF4me Replace Text with Image swaps placeholders like [LOGO], SIGN_HERE, or {{PHOTO}} with actual images in Word docs—logos, signatures, or charts. Control sizing, page targeting (all, odd, even, first, last), and aspect ratio. Ideal for branding templates, inserting signatures in contracts, or embedding charts in reports—all without opening Word.
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.

Configuration at a Glance
Word File mapped from step 4, Word File Name = abc.docx, Search Text = pellentesque, Image File mapped from step 3, Skip first page = False, Pages = all.
Map from step
abc.docx
pellentesque
Map from step
True/False
all
:::tip Map Word File and Image File from previous steps Use the + button to map Word File, Word File Name, and Image File from earlier Zap steps (e.g., Google Drive, Dropbox, or a trigger). The Word file must provide full content, not "Exists but not shown" references. :::
:::warning File: (Exists but not shown) If you see "File: (Exists but not shown)" in the Word File or Image File field and get errors, select the option that provides the full file content instead. See Zapier & Power Automate Tips for details. :::
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 Text with Image action. Parameter names match the Zapier configuration UI.
- Map Word File and Word File Name from previous step
- Set Search Text to the placeholder to replace (e.g., pellentesque, [LOGO], SIGN_HERE)
- Map Image File from Drive, Dropbox, or trigger
- Set Skip first page (True/False) and Pages (all, odd, even, first, last)
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 |
|---|---|---|---|
| Word File*** | File | Word document—map from previous step (Drive, Dropbox, trigger) | [4. File from Step 4] |
| Word File Name | String | Word filename—with .docx or .doc extension | abc.docx |
| Search Text*** | String | Text to find and replace—case-sensitive. All instances replaced with image | pellentesque |
| Image File | File | Replacement image—map from previous step. PNG, JPG, JPEG, BMP, GIF | [3. File from Step 3] |
| 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 the modified Word document for use in subsequent Zap steps. The output format is common across all PDF4me Word file-returning actions in Zapier.
Key output fields (map these to your next step)
API endpoint to download the modified Word file. Map this to the next step's file input (Drive, Dropbox, or another PDF4me Word action).
api.pdf4me.com/Zapier/GetDocument?d=...Alternative download URL with filename in path.
api.pdf4me.com/Zapier/GetAltDocument/.../document.docx- Table
- JSON
- Zap Integration
| Parameter | Type | Description |
|---|---|---|
| Job Id | String | Unique identifier for the Zapier job execution |
| File Url | URL | API endpoint to download the modified Word file |
| Alternate File Url | URL | Alternate download URL with filename in path |
| File Name | String | Base filename without extension |
| Full File Name | String | Complete filename with extension |
| File Extension | String | File extension (.docx) |
Example JSON output (URLs show format only—not working links):
{
"Job Id": "...",
"File Url": "api.pdf4me.com/Zapier/GetDocument?d=...",
"Alternate File Url": "api.pdf4me.com/Zapier/GetAltDocument/.../document.docx",
"File Name": "document",
"Full File Name": "document.docx",
"File Extension": ".docx"
}
Use + to map File Url or Alternate File Url to the next step—Drive, Dropbox, Email, or another PDF4me Word action.
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