New: PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

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.

TRY IT NOW
PDF Compressor API illustration

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 Compressor API benefits illustration
PDF.co and PyMuPDF, both from Artifex

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: