Compress PDF is a REST API tool that maximally reduces file size while preserving the integrity of document content using industry-leading optimization technology.
Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab! Visit Get Started to receive your free API Key.
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" \
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.
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.
Api-Keyfield with your unique API Key
filewith the local path to your input
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"
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.)
Create your FREE Guest API Key to start processing PDFs in seconds, only possible with pdfRest.