{"uid":"cap_0F9cbr91bxe2GiEKLXcrp","slug":"x402-deployer-x402-deployer-workers-dev-500f6ca3","name":"PDF Compressor (x402-deployer)","description":"PDF compressor / shrink PDF / PDF size reducer / smaller PDF for email. Three quality levels: ebook (lowest, web-quality), printer (medium), prepress (highest, archival). CloudConvert engine.","url":"https://x402-deployer.x402-deployer.workers.dev/pdf-compress","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["pdf_url"],"properties":{"pdf_url":{"type":"string","format":"uri","description":"URL of the PDF to compress. Must be http(s)."},"profile":{"enum":["web","print","archive","mrc","max"],"type":"string","description":"Optional. Compression profile: 'web' (default), 'print', 'archive', 'mrc', or 'max'."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"pdf_url":{"type":"string"},"saved_percent":{"type":"number"},"original_size_bytes":{"type":"integer"},"compressed_size_bytes":{"type":"integer"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lbzZBqfA0bVNTy7an0AJP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and reduces PDF file size using CloudConvert at three quality levels: ebook, printer, or prepress","exampleAgentPrompt":"Can you compress this PDF for me using printer quality — it's 15MB and needs to be small enough to email as an attachment?","exampleUseCases":null,"resultDescription":"Returns a compressed PDF binary or download URL with reduced file size. The compression level depends on the chosen quality: ebook (lowest size, web/screen quality), printer (medium balance of size and quality), or prepress (highest quality, archival-grade, least compression).","failureModes":["Invalid or corrupted PDF input — returns error indicating unparseable file","Unsupported quality level value — returns validation error with accepted enum values","File too large or timeout — CloudConvert processing exceeds time limit","Payment failure — x402 payment of $0.005 USDC not authorized","Network error reaching CloudConvert backend — returns upstream error"],"whenToPreferThis":"Use this endpoint when you need to reduce a PDF's file size for email, web hosting, or storage, and want control over the quality/size tradeoff via three distinct compression presets. Ideal when the PDF needs to remain a PDF (not converted to another format). Choose ebook for maximum compression, printer for balanced quality, prepress when archival fidelity matters most.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:14.692Z","isFirstParty":false}