$ man office-to-pdf
/office-to-pdf(1)
PRICE / CALL
$0.05
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
office-to-pdf — office to pdf converter — docx/doc, xlsx/xls, pptx/ppt, odt/ods/odp, rtf, txt, csv, epub, md, html, apple pages/numbers/keynote → pdf
SYNOPSIS
POST https://x402.org/v1/office-to-pdf
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Office to PDF converter — DOCX/DOC, XLSX/XLS, PPTX/PPT, ODT/ODS/ODP, RTF, TXT, CSV, EPUB, MD, HTML, Apple Pages/Numbers/Keynote → PDF. CloudConvert engine.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| file_url | string | URL of the source Office file. Format inferred from extension. | required |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| pdf_url | string | Temporary download URL for the converted PDF file hosted on CloudConvert's storage. |
| file_size_bytes | number | Size of the generated PDF in bytes. |
| source_format | string | Detected input format of the source file (e.g. docx, xlsx, pptx, odt, rtf, epub). |
| source_url | string | Echoed URL of the original Office document that was submitted for conversion. |
| job_id | string | CloudConvert job identifier for tracking or debugging the conversion run. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/office-to-pdf \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the office-to-pdf tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- docxxlsxpptxpdfofficeconvert
- env
- CLOUD_CONVERT_API_KEY
- methods
- POST
- cluster
- mediakit
- price
- $0.05 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| xml-to-word | XML → Microsoft Word (DOCX) converter via CloudConvert. | $0.05 |
| pdf-split | PDF splitter / PDF page extractor. | $0.04 |
| split-pdf | PDF splitter / PDF page extractor / split PDF by range / PDF to multiple files. | $0.04 |
| logo-detect | Brand logo detection / brand recognition in images. | $0.03 |
| video-thumbnail | Video thumbnail / video frame extractor. | $0.03 |
| html-to-pdf | URL to PDF / HTML to PDF / webpage screenshot to PDF. | $0.08 |
| subtitles | SRT / VTT subtitle generator from video or audio. | $0.08 |
| audio-loudnorm | Audio loudness normalizer (EBU R128 LUFS). | $0.02 |
SEE ALSO