/api/v1/compressCompress
Lossless compression: removes Info and XMP metadata and unused objects, rebuilds the document with object streams. The result is never larger than the original.
file- One PDF. Can be sent as a raw body with Content-Type: application/pdf.
curl -X POST https://lockpage.tools/api/v1/compress \
-H "Authorization: Bearer $LOCKPAGE_KEY" \
-F file=@contract.pdf \
-o contract.min.pdf