Extract Attachment from PDF in Power Automate
PDF4me Extract Attachment from PDF action extracts embedded files and attachments from PDF documents in Power Automate for comprehensive file recovery. This essential extraction feature retrieves attached spreadsheets, documents, images, source files, and embedded content from PDF portfolios, enabling attachment distribution, source file recovery, document package processing, and file organization 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 attachment extraction services.

Key Features
- Embedded File Extraction: Retrieve all files attached to PDF documents
- Portfolio Support: Extract files from PDF portfolios and packages
- Multiple Attachments: Extract all attachments in single operation
- Source File Recovery: Retrieve original source files from PDF/A-3
- Format Preservation: Maintain original file formats and extensions
Parameters
Complete list of parameters for the Extract Attachment from PDF action. Configure these parameters to extract embedded files.
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 File • Map PDF file content from previous action • Supports PDFs from SharePoint, OneDrive, email • Can be dynamically retrieved from flows • Must be valid PDF document with attachments | [File Content from Get File] |
| File Name*** | String | PDF Document Name • Source file name with proper file extension • Used for processing identification • Must include .pdf extension • Supports dynamic naming | abc.pdf |
Output
The PDF4me Extract Attachment from PDF 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 |
|---|---|---|
| Attachments | Array | Collection of all extracted attachment files with name and data |
| File Name | String | Individual attachment filename with extension |
| File Data | Binary | Individual attachment content in binary format |
JSON Response Format
{
"Attachments": [
{
"Name": "source_data.xlsx",
"Data": "[Binary File Content]"
},
{
"Name": "supporting_doc.pdf",
"Data": "[Binary File Content]"
}
]
}
Power Automate Flow Usage
Use extracted attachments in subsequent actions:
- Iterator Processing: Process each attachment individually
- SharePoint Upload: Upload attachments to separate folders
- Email Distribution: Send extracted files to recipients
- Data Processing: Process extracted Excel or CSV files
- Database Import: Load extracted data files into databases
- Archive Storage: Store attachments separately from main PDF
Workflow Examples
The PDF4me Extract Attachment from PDF action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Compliance Extraction
- Source Recovery
- Portfolio Distribution
- Data Processing
Automated Compliance Package Attachment Extraction Workflow
Transform your compliance processing with automated attachment extraction:
Complete Workflow Steps:
- Trigger: Compliance submission PDF received via email
- Get Submission PDF: Retrieve compliance package from email
- Extract Attachments: Retrieve all embedded evidence files
- Apply to Each: Process each extracted attachment
- Classify Attachment: Identify each file type
- Upload by Type: Save to appropriate compliance folders in SharePoint
- Index Files: Log all attachments in compliance database
- Notify Team: Alert compliance team via Teams that submission processed
Business Benefits:
- Processes 30+ compliance packages monthly automatically
- Extracts and organizes all supporting evidence
- Eliminates manual attachment extraction and filing
- Maintains organized compliance document repository
Automated PDF/A Source File Extraction Workflow
Streamline your archive workflows with source file extraction:
Complete Workflow Steps:
- Trigger: PDF/A-3 archive document needs source file
- Get Archive PDF: Download PDF/A-3 with embedded sources from SharePoint
- Extract Attachments: Retrieve embedded Excel or Word files
- Validate Files: Confirm extracted files are complete
- Upload Source Files: Save to editable files folder in OneDrive
- Create Working Copy: Enable editing of source files
- Archive PDF: Keep PDF/A in compliance archive
- Notify Requester: Send extracted source files via email
Business Benefits:
- Recovers 50+ source files monthly from archives
- Enables editing of archived source documents
- Maintains compliance archive while providing access
- Reduces file recovery time from hours to minutes
Automated PDF Portfolio Attachment Distribution Workflow
Optimize your file sharing with automated portfolio extraction:
Complete Workflow Steps:
- Trigger: PDF portfolio received from client via email
- Get Portfolio PDF: Download portfolio document
- Extract All Attachments: Retrieve all embedded files
- Apply to Each: Process each extracted file
- Determine Recipient: Route each file to appropriate team member
- Email Individually: Send each file to designated recipient
- Upload to Folders: Save files to team-specific folders in SharePoint
- Notify Sender: Confirm portfolio processed and distributed via Teams
Business Benefits:
- Processes 40+ portfolios monthly automatically
- Distributes embedded files to correct departments
- Eliminates manual portfolio unpacking
- Reduces distribution time from 30 minutes to 2 minutes
Automated Report Attachment Data Processing Workflow
Enhance your data workflows with automated attachment extraction:
Complete Workflow Steps:
- Trigger: Monthly report PDF received with data files
- Get Report PDF: Download report with embedded Excel from SharePoint
- Extract Data Attachment: Retrieve embedded spreadsheet
- Import to Database: Load Excel data into Azure SQL Database
- Generate Analysis: Create analysis from extracted data
- Compare to Previous: Analyze trends vs previous month
- Update Dashboard: Refresh Power BI dashboard with new data
- Archive Files: Store both PDF and extracted data in OneDrive
Business Benefits:
- Processes 25+ data reports monthly automatically
- Extracts and imports embedded data seamlessly
- Enables automated data pipeline from PDF packages
- Maintains data source traceability with PDF link
Industry Use Cases & Applications
- Legal & Compliance
- Finance & Accounting
- Project Management
- Data & Analytics
Legal & Compliance Use Cases
- Evidence Extraction: Extract attached evidence from legal PDFs
- Compliance Packages: Retrieve supporting documents from submissions
- Contract Exhibits: Extract attached schedules and exhibits
- Discovery Processing: Extract files from e-discovery PDFs
Finance & Accounting Use Cases
- Invoice Attachments: Extract supporting documents from invoices
- Audit Packages: Retrieve audit evidence files from PDFs
- Financial Reports: Extract source data from report packages
- Tax Submissions: Extract supporting schedules from tax PDFs
Project Management Use Cases
- Deliverable Packages: Extract project files from portfolios
- Documentation Sets: Retrieve embedded documentation files
- Client Packages: Extract all files from client deliverables
- Archive Recovery: Retrieve source files from archives
Data & Analytics Use Cases
- Report Data: Extract embedded data files from reports
- Analysis Sources: Retrieve source data for analysis
- BI Packages: Extract data files from BI report PDFs
- Research Data: Retrieve data files from research PDFs