Reduce PDF file size while maintaining quality. Choose your compression level.
curl -X POST https://www.bastiantechnologies.com/api/pdf/compress \ -H "X-API-Key: your_api_key" \ -F "pdf=@document.pdf" \ -F "level=medium" # level: low | medium | high
const fd = new FormData(); fd.append('pdf', file); fd.append('level', 'medium'); const r = await fetch('/api/pdf/compress', { method: 'POST', headers: { 'X-API-Key': 'your_api_key' }, body: fd }).then(r => r.json());
import requests r = requests.post("https://www.bastiantechnologies.com/api/pdf/compress", headers={"X-API-Key": "your_api_key"}, files={"pdf": open("doc.pdf", "rb")}, data={"level": "medium"})
Method: POST URL: https://www.bastiantechnologies.com/api/pdf/compress Body Type: Form-Data Fields: pdf (binary), level (low|medium|high)