# RelayStation Office-to-PDF Converter

> RelayStation Office-to-PDF Converter is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts Word (.docx/.doc), Excel (.xlsx/.xls), or PowerPoint (.pptx/.ppt) files to PDF using LibreOffice, preserving layout.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/from-office
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-office-to-pdf-converter-704360f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sjPjo0JQz_tzCRLhicu_w

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability relaystation-office-to-pdf-converter-704360f7 -d '<json body>'
```

Example prompt: Can you convert this Word document (report_final.docx) to a PDF for me, making sure the layout stays intact?

## When to prefer this

Choose this endpoint when you need a fast, programmatic, per-call conversion of Word, Excel, or PowerPoint files to PDF without standing up your own LibreOffice server. Ideal for agents that occasionally need to produce PDFs from office documents without a long-term SaaS subscription — pay only $0.01 per conversion via x402.

## Known failure modes

- Corrupted or password-protected office file returns an error
- Unsupported file format (e.g. .odt, .csv) may not be accepted
- Complex formatting with proprietary fonts may not render identically
- Large files may time out or exceed size limits
- Missing or malformed file payload returns 400 Bad Request
- Payment/x402 authorization failure prevents processing

## How this service works

$0.005/call. Convert Word, Excel, or PowerPoint to PDF via LibreOffice — layout preserved. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A PDF file binary (application/pdf) rendered from the submitted office document, with layout, fonts, tables, and formatting preserved as closely as LibreOffice can reproduce them.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key, ≤ 50 MB> }."
      },
      "filename": {
       "type": "string",
       "minLength": 1,
       "maxLength": 255,
       "description": "Source filename; its extension must be a supported office format."
      },
      "options": {
       "type": "object",
       "description": "Optional LibreOffice export controls; absent fields take the engine default.",
       "additionalProperties": false,
       "properties": {
        "pageRanges": {
         "type": "string",
         "minLength": 1,
         "maxLength": 255,
         "description": "Page subset, e.g. \"1-5,8\"."
        },
        "quality": {
         "type": "integer",
         "minimum": 1,
         "maximum": 100,
         "description": "JPEG quality (1–100) for embedded images."
        },
        "losslessImageCompression": {
         "type": "boolean"
        },
        "reduceImageResolution": {
         "type": "boolean",
         "description": "Gate for maxImageResolution; must be true for maxImageResolution to apply."
        },
        "maxImageResolution": {
         "type": "integer",
         "enum": [
          75,
          150,
          300,
          600,
          1200
         ],
         "description": "DPI ceiling for embedded images (closed ladder)."
        },
        "landscape": {
         "type": "boolean",
         "description": "Force landscape orientation."
        }
       }
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-office-to-pdf-converter-704360f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
