PDF compression powered by PyMuPDF.
Reduce PDF file size with PDF.co’s /v2/pdf/compress endpoint, powered by PyMuPDF. Start with a compression preset, then compare the output with your size requirement and readability needs. The reduction depends on the source PDF and the settings you choose.
Benefits of PDF Compress API
Compression You Can Adjust
Choose a preset for lighter or stronger compression. Stronger image compression can reduce visual detail, so check small text, charts, and scanned pages in the output.
Process Larger Documents
Use background processing for longer jobs. Wait for completion before downloading the output or sending it to the next application.
Check Your Upload Limit
Compare the resulting file size with the destination’s limit. Compression does not guarantee a particular file size or a fixed percentage reduction.
Multilingual Support
Compatible with numerous programming languages, including JavaScript, Python, C#, PHP, .NET/ASP.NET, Java, and Visual Basic.
No-Code Automation
Easily automate PDF operations with platforms like Zapier, Make, and more—no coding required.

PDF.co and PyMuPDF.
Both from Artifex.
Use PDF.co for hosted document workflows, or explore PyMuPDF for document processing in Python.
Install PyMuPDF locally: