Compress PDF

Compress PDF

Compress PDF is a REST API tool that maximally reduces file size while preserving the integrity of document content using industry-leading optimization technology.

A bubbling flask with code brackets inside
Try Now with API Lab

Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!  

to receive your free API Key.
Parameters
Required Parameters
POST
/compressed-pdf
curl -X POST "https://api.pdfrest.com/compressed-pdf" \ 
  -H "Accept: application/json" \ 
  -H "Content-Type: multipart/form-data" \
  -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  
Response
The response for your API Call will display here.
Once you've sent your POST request and received a valid response, you can download your output file using the output URL.

Why is pdfRest the best API to compress PDF file size?

pdfRest offers the best solution for compressing PDF documents, because it supports unmatched file size reduction, a simple interface, and gold-standard technology.

Unmatched File Size Reduction

pdfRest’s compression technology results in PDF documents with the smallest file sizes and highest fidelity of preserved content compared to other leading PDF technology offerings.

pdfRest reduces file size by an average of 53% with the low compression setting through 68% with high compression and can reach up to 98% file size reduction for image-heavy PDFs.

Simple Interface, Complex Algorithm

Your choice is simple - select from high, medium, or low compression for a tradeoff between more size reduction or higher fidelity of preserved content. A quick comparison of results will help you determine just the right fit for your application.

Under the hood, pdfRest applies a complex series of operations to remove all unused, unneeded, and redundant information from the file. No need to dive into these weeds -put our PDF exports to work, so you can fast-track results.

Proprietary Technology from PDF Experts

pdfRest builds upon gold-standard Adobe® optimization technology to achieve industry-leading results. Our team of PDF experts has spent over a decade improving compression technology to handle just about every edge case and combination of PDF conditions out there.

If you have specific requirements, Compress PDF offers a customized option for adjusting all of the granular settings to meet your needs, and our PDF experts are happy to help!
Start from Code Examples
  1. First, you'll need an API Key - to:
    • Stay anonymous with a Guest API Key for 10 free API Calls
    • Sign up for an upgraded API Key with unlimited, continuous service
  2. Choose your programming language
  3. Copy and paste the code to your project
  4. Update Api-Key field with your unique API Key
  5. Update file with the local path to your input
  6. Run this code to send an API Call
See more code examples in our
GitHub repository
Try pdfRest with just a few clicks
Download our Postman Postman Collection
curl -X POST "https://api.pdfrest.com/compressed-pdf" \
  -H "Accept: application/json" \
  -H "Content-Type: multipart/form-data" \
  -H "Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  -F "file=@../Sample_Input/toOptimize.pdf" \
  -F "output=example_out" \
  -F "compression_level=medium"
Customize Your Solution
Compression Level

The compression_level parameter lets you adjust the amount of compression so you can achieve the right balance between visual fidelity and file size savings. Choose from our presets of “high”, “medium”, and “low” compression levels, or select “custom” compression to fine-tune your PDF compression with a custom profile. (See profile for more information about custom profiles.)

Generate a self-service API Key now!

Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.

Compare Plans
Contact Us