Find and Replace Text in Power Automate
PDF4me Find and Replace Text action delivers intelligent text modification in Power Automate with automated search and replacement of text content within PDF documents. This comprehensive text editing service updates content across specific pages or entire documents—enabling document rebranding, error correction, and content maintenance workflows across Microsoft 365 ecosystem.
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 document processing services.

Key Features
- Text Search & Replace: Find and update specific text strings in PDFs
- Page-Specific Control: Target specific pages or entire document
- Batch Updates: Replace all occurrences automatically
- Content Maintenance: Keep documents current with automated updates
- Flow Integration: Use in document updating and rebranding workflows
Parameters
Complete list of parameters for the Find and Replace Text 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 Document • PDF file content to update • Supports text-based PDFs • Compatible with SharePoint, OneDrive sources • Accepts dynamic content from previous actions | body('Get_file_content') |
| File Name*** | String | PDF Filename with Extension • Specify PDF filename with .pdf extension • Required for proper file identification • Supports dynamic naming from flow variables • Maintains document tracking | contract.pdf |
| Old Text*** | String | Text to Search For • Exact text string to find in PDF • Case-sensitive search • Supports dynamic text from flow variables • All occurrences will be found | ACME Corp |
| New Text*** | String | Replacement Text • Text to replace found instances with • Can be empty string to remove text • Supports dynamic replacement from flow data • Applied to all found occurrences | GlobalTech Industries |
| Pages*** | String | Target Pages for Replacement • Specific pages: 1,3,5• Page ranges: 1-10• All pages: all• Enables selective text replacement | all |
Output
The PDF4me Find and Replace Text 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 |
|---|---|---|
| File Content | Binary | Updated PDF with text replacements applied |
JSON Response Format
The raw JSON response from the action:
{
"File Content": "[Binary PDF Data]"
}
Power Automate Flow Usage
Use updated PDFs in subsequent actions:
- Email Distribution: Send updated PDFs to stakeholders
- SharePoint Update: Replace original with updated PDF
- Approval Workflows: Route updated documents for approval
- Archive Storage: Store corrected PDFs in document libraries
- Document Comparison: Compare before/after versions
- Batch Processing: Update multiple PDFs with same changes
Workflow Examples
The PDF4me Find and Replace Text action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Document Rebranding
- Batch Error Correction
- Contract Term Updates
- Template Maintenance
Automated Document Rebranding Workflow
Transform your rebranding operations with automated company name replacement across PDF library:
Complete Workflow Steps:
- Trigger: Company rebrand initiated with new name approval
- Get PDFs: Retrieve all marketing PDFs from SharePoint library
- Loop Documents: For each PDF, apply name replacement
- Replace Text: Change old company name to new brand name
- Update Logo: Optionally replace logo images
- Version Control: Save updated PDF with new version number
- Archive Old: Move original PDFs to legacy archive
- Distribute: Publish rebranded PDFs to marketing channels
Business Benefits:
- Rebrands 500+ documents automatically within hours
- Eliminates manual document editing saving 40+ hours
- Ensures consistent branding across all documents
- Maintains version history with automated archival
Automated Document Error Correction Workflow
Streamline your document maintenance with automated error correction across PDFs:
Complete Workflow Steps:
- Trigger: Error identified in standardized document template
- Identify Affected: Query SharePoint for PDFs using affected template
- Loop Corrections: For each affected PDF, apply correction
- Replace Error: Update incorrect text with corrected version
- Validate: Verify correction applied successfully
- Update Version: Increment document version number
- Notify Owners: Alert document owners of correction
- Log Changes: Record correction in document audit log
Business Benefits:
- Corrects 200+ documents automatically in minutes
- Eliminates error propagation across document library
- Reduces correction time by 95% with automation
- Maintains document accuracy with centralized fixes
Automated Contract Term Replacement Workflow
Optimize your contract management with automated term updates across agreements:
Complete Workflow Steps:
- Trigger: Standard contract term updated by legal team
- Get Contracts: Retrieve active contracts from contract library
- Filter: Identify contracts containing outdated term
- Replace Term: Update old legal language with new approved text
- Track Changes: Log specific pages and replacements made
- Legal Review: Route updated contracts for legal validation
- Client Notification: Prepare amendment notices for clients
- Archive: Store original and updated contract versions
Business Benefits:
- Updates 150+ active contracts automatically
- Ensures legal compliance with standardized terms
- Reduces contract amendment time by 80%
- Maintains complete contract modification audit trail
Automated Document Template Update Workflow
Enhance your document management with automated template field updates:
Complete Workflow Steps:
- Trigger: Template field definition updated in master data
- Get Templates: Retrieve all document templates from library
- Identify Fields: Find templates containing updated field
- Replace Field: Update field label or placeholder text
- Validate Format: Ensure replacement maintains formatting
- Test: Validate template generates correctly with new field
- Publish: Update template in active templates library
- Notify Users: Alert teams of template updates
Business Benefits:
- Maintains 80+ document templates automatically
- Ensures template consistency across organization
- Reduces template maintenance time by 90%
- Eliminates template version confusion
Industry Use Cases & Applications
- Corporate & Business
- Legal & Contracts
- Marketing & Sales
- Document Management
Corporate & Business Use Cases
- Rebranding: Update company names across documents
- Address Updates: Replace old addresses with new locations
- Contact Updates: Update phone numbers and email addresses
- Policy Updates: Replace outdated policy language
Legal & Contracts Use Cases
- Term Updates: Replace contract terms across agreements
- Legal Language: Update standard legal clauses
- Compliance Updates: Replace outdated compliance text
- Amendment Automation: Update specific contract provisions
Marketing & Sales Use Cases
- Product Rebranding: Update product names in materials
- Pricing Updates: Replace old prices with current pricing
- Campaign Updates: Update campaign-specific text
- Collateral Maintenance: Keep marketing materials current
Document Management Use Cases
- Error Correction: Fix typos and errors across documents
- Template Updates: Maintain document template fields
- Standardization: Enforce consistent terminology
- Content Refresh: Update outdated information