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.
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.
Use background processing for longer jobs. Wait for completion before downloading the output or sending it to the next application.
Compare the resulting file size with the destination’s limit. Compression does not guarantee a particular file size or a fixed percentage reduction.
Compatible with numerous programming languages, including JavaScript, Python, C#, PHP, .NET/ASP.NET, Java, and Visual Basic.
Easily automate PDF operations with platforms like Zapier, Make, and more—no coding required.

Use PDF.co for hosted document workflows, or explore PyMuPDF for document processing in Python.
Install PyMuPDF locally:
Create an account, get an API key and test a request.