XPS to PDF API - convert Windows XPS and OXPS documents to PDF (or JPG/PNG pages)
xps_to_pdfSend a Microsoft XPS (.xps) or OpenXPS (.oxps) file as base64 and get a PDF back with real, searchable text (vector output, not a screenshot), all documents of the file in one PDF, or every page as a JPG / PNG picture (ZIP). Damaged or non-XPS files get a clear error. Open-source libgxps on our server, 0 AI, nothing stored. For document pipelines, print-to-file archives, helpdesks and no-code flows. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/xps-to-pdf.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "xps_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | pdf (default), or jpg / png pictures of every page (one file or a ZIP) | |
| fileName | No | Optional file name, e.g. scan.xps | |
| fileContent | No | The .xps or .oxps file as base64, max 50 MB (empty = built-in example) |