Skip to main content

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.

Related Blog Posts(4)
Got Word or Excel Docs to Archive? Power Automate Converts Them to Compliance PDFs. Five Steps and You Are Done!
Convert Word to PDF/A in Power Automate: Get file content → Convert to PDF → Compress PDF → Create PDF/A → Create file. DOCX, Excel, PowerPoint to ISO 19005 archival format. Long-term preservation, compliance-ready.
Read post →
PDF Archiving in Power Automate: An Unattended SharePoint Folder That Compresses and Converts to PDF/A with PDF4me
PDF archiving in Power Automate with PDF4me. Drop a file in a SharePoint folder and get back a compressed, PDF/A-2b archival copy, with no manual steps.
Read post →
Email Archiving in Power Automate: One Outlook Message Becomes One Compressed PDF/A File in SharePoint with PDF4me
Email archiving in Power Automate with PDF4me. Every Outlook message and its attachments become one compressed PDF/A file, filed in SharePoint automatically.
Read post →

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.

Compress PDF Power Automate

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.

ParameterRequiredWhat it doesExample
File ContentRequiredContent of the PDF to compress. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.[File Content from Get File]
File NameRequiredName of the PDF to compress, including its extension (for example `invoice.pdf`). Map it from the file name returned by a previous action.AnnualReport.pdf
Optimize ProfileRequiredCompression profile to use. Options: Default, Max, Web, WebMax, Print, PrintMax, PrintGray, Compress, CompressMax. Defaults to `Max`.Maximum Compression

Output​

The PDF4me Compress PDF action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

FieldTypeWhat it contains
File ContentFile contentContent of the compressed PDF. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
File NameTextFile name of the compressed PDF, as returned by PDF4me. Use it as the file name when saving the file.
Page CountTextPage count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number.

Workflow Examples​

The PDF4me Compress PDF action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Report Compression for Email Distribution

Transform your reporting workflows with automated PDF compression before email delivery:

Complete Workflow Steps:

  1. Trigger: Scheduled trigger - monthly on 1st at 9 AM for report generation
  2. Generate Report: Create comprehensive monthly PDF report from data sources
  3. Get Report Size: Check generated PDF file size for compression need
  4. Compress PDF: Apply Maximum Compression for email-friendly file size
  5. Compare Sizes: Calculate compression ratio and size reduction achieved
  6. Email Stakeholders: Send compressed report to distribution list via Outlook
  7. Archive Original: Store uncompressed version in SharePoint archive
  8. 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

Industry Use Cases & Applications​

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

Get Help​