Compress PDF in Power Automate
PDF4me Compress PDF action delivers intelligent PDF file size reduction in Power Automate with three optimization profiles tailored for specific use cases. This powerful compression service reduces storage requirements and transfer times while preserving document quality, making it ideal for email distribution, web publishing, and archival storage 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 PDF compression services.

Key Features
- Multiple Compression Profiles: Choose from Maximum, Web, or Print optimization profiles
- Intelligent Compression: Automatically optimize images, fonts, and document structure
- Quality Control: Balance file size reduction with visual quality preservation
- Fast Processing: Compress large PDFs quickly for immediate use
- Flow Integration: Use compressed PDFs in subsequent Power Automate actions
Parameters
Complete list of parameters for the Compress PDF action. Configure these parameters to control PDF compression.
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 Content • Map PDF file content from previous action output • Supports PDFs of any size and complexity • Can be from SharePoint, OneDrive, email attachments, databases • Accepts dynamic content from flow variables | [File Content from Get File] |
| File Name*** | String | PDF File Name • Specify source PDF file name with .pdf extension • Used for processing and output file naming • Should match source file naming convention • Supports dynamic naming from flow variables | AnnualReport.pdf |
| Optimize Profile*** | Option | Compression Strategy Selection • Maximum Compression - Smallest file size, fast downloads, optimized display, ideal for email and online sharing • For Web - Small size, short download time, fast display, perfect for website publishing and web applications • For Print - Correct fonts, right color scheme, suitable resolution, best for print-ready documents with minor image DPI reduction | Maximum Compression |
Output
The PDF4me Compress 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 |
|---|---|---|
| File Content | Binary | Compressed PDF file content in binary format ready for storage or distribution |
| File Name | String | Name of the compressed PDF output file |
JSON Response Format
{
"File Content": "[Binary Content of Compressed PDF]",
"File Name": "AnnualReport_Compressed.pdf"
}
Power Automate Flow Usage
Use compressed PDF in subsequent actions:
- Email Distribution: Attach smaller PDFs to Outlook emails avoiding size limits
- SharePoint Upload: Save compressed documents to libraries saving storage space
- OneDrive Storage: Store optimized PDFs in personal or shared folders
- Teams Sharing: Post compressed documents in Teams channels for faster access
- Web Publishing: Upload optimized PDFs to websites for better performance
- Cloud Backup: Archive compressed documents to reduce cloud storage costs
Workflow Examples
The PDF4me Compress PDF action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Email Reports
- Web Publishing
- Archive Storage
- Print Preparation
Automated Report Compression for Email Distribution
Transform your reporting workflows with automated PDF compression before email delivery:
Complete Workflow Steps:
- Trigger: Scheduled trigger - monthly on 1st at 9 AM for report generation
- Generate Report: Create comprehensive monthly PDF report from data sources
- Get Report Size: Check generated PDF file size for compression need
- Compress PDF: Apply Maximum Compression for email-friendly file size
- Compare Sizes: Calculate compression ratio and size reduction achieved
- Email Stakeholders: Send compressed report to distribution list via Outlook
- Archive Original: Store uncompressed version in SharePoint archive
- Log Metrics: Record compression statistics to Excel tracking sheet
Business Benefits:
- Reduces report file sizes by 85% enabling email delivery
- Processes 50+ monthly reports automatically
- Eliminates email bounce-backs from file size restrictions
- Saves 200GB annually in email server storage
Automated PDF Compression for Website Upload
Streamline your content publishing with automated PDF optimization for web:
Complete Workflow Steps:
- Trigger: New PDF document uploaded to website content SharePoint folder
- Get PDF: Retrieve uploaded PDF file from SharePoint
- Compress PDF: Apply For Web profile for optimal web performance
- Optimize Metadata: Clean PDF metadata for web compliance
- Upload to Website: Transfer compressed PDF to web server via FTP/API
- Update Links: Update website database with new PDF URL
- Notify Webmaster: Send Teams notification with published PDF details
- Archive Source: Move original PDF to archive folder
Business Benefits:
- Reduces PDF sizes by 70% for 3x faster page loads
- Publishes 100+ web PDFs monthly automatically
- Improves website SEO with faster loading documents
- Enhances user experience with quick PDF access
Automated PDF Compression for Long-Term Archival
Optimize your document archival with automated compression for storage efficiency:
Complete Workflow Steps:
- Trigger: Document marked as "Archive Ready" in document management system
- Get Document: Retrieve PDF from active storage location
- Compress PDF: Apply Maximum Compression for smallest file size
- Verify Quality: Perform quality check on compressed document
- Upload Archive: Store compressed PDF in Azure Blob cold storage
- Update Index: Log compressed file details in archive database
- Delete Active: Remove original from active storage after retention period
- Report Savings: Calculate and report storage cost savings achieved
Business Benefits:
- Reduces archive storage costs by 80% annually
- Compresses 500+ documents monthly for archival
- Saves $15,000 yearly in cloud storage expenses
- Maintains compliance with document retention policies
Automated PDF Optimization for Print Services
Enhance your printing workflows with automated PDF compression for print vendors:
Complete Workflow Steps:
- Trigger: Marketing material approved in approval workflow
- Get Approved PDF: Retrieve final approved PDF from SharePoint
- Compress PDF: Apply For Print profile maintaining print quality
- Validate Colors: Check color profile for print compatibility
- Add Print Marks: Insert crop marks and bleed settings
- Upload to Vendor: Send optimized PDF to print vendor portal via API
- Email Confirmation: Notify marketing team of successful submission
- Track Job: Create print job record in tracking database
Business Benefits:
- Optimizes print files while preserving quality for 200+ jobs monthly
- Reduces file transfer time to print vendors by 60%
- Ensures print quality compliance with For Print profile
- Accelerates print production cycle by 2 days
Industry Use Cases & Applications
- Publishing & Media
- Education & Training
- Finance & Legal
- Healthcare & Medical
Publishing & Media Use Cases
- Digital Publications: Compress magazines and newspapers for online distribution
- eBooks: Optimize eBook PDFs for faster downloads and storage
- Marketing Materials: Reduce brochure and catalog file sizes for email campaigns
- Press Releases: Compress media kits for journalist distribution
Education & Training Use Cases
- Course Materials: Optimize educational PDFs for student download
- Textbooks: Compress digital textbooks for LMS platforms
- Study Guides: Reduce study material sizes for mobile access
- Research Papers: Compress academic papers for journal submission
Finance & Legal Use Cases
- Financial Reports: Compress annual reports for investor distribution
- Legal Documents: Optimize case files for email and portal sharing
- Audit Reports: Reduce audit documentation sizes for archival
- Contracts: Compress contract PDFs for electronic signing platforms
Healthcare & Medical Use Cases
- Patient Records: Compress medical records for system storage
- Research Documents: Optimize research PDFs for collaborative platforms
- Policy Manuals: Reduce policy document sizes for staff access
- Billing Statements: Compress billing PDFs for email delivery