Skip to main content

Compress PDF

OptimizeCompress PDF

The Compress PDF API reduces PDF file size using an optimization profile. You send the PDF as Base64 (docContent), docName, optimizeProfile (Web, Print, or Screen), and optionally async. The API returns a compressed PDF. Use the tester below to try it; more details are in the sections that follow.

Try the Compress PDF API

Quick reference

Endpoint: POST /api/v2/Optimize · Required: api-key, docContent, docName, optimizeProfile

Try it live

Use the form below to send your API key, PDF (Base64), and optimization profile (Web, Print, or Screen). The response is the compressed PDF. No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Compress PDF?

This endpoint compresses and optimizes a PDF to reduce file size. You choose optimizeProfile: Web (web viewing and fast download), Print (high-quality printing), or Screen (screen viewing). The API returns a compressed PDF while maintaining acceptable quality for the selected profile.

Optimization profiles

  • Web – Optimized for web viewing and fast download.
  • Print – Optimized for high-quality printing.
  • Screen – Optimized for screen viewing.
Best for

Use when you need smaller PDFs for email, web, or storage. Combine with Merge Multiple PDF Files or Split PDF in a pipeline.

Prerequisites

Before using this endpoint, make sure you have:

Response Format

The API returns a compressed PDF file with reduced file size based on the selected optimization profile.

Get Help