{"slug": "office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call", "title": "Office to PDF API: Word, Excel and PowerPoint to PDF, pay per call", "summary": "A developer launched a pay-per-call Office-to-PDF conversion API at tanod.dev that accepts Word, Excel and PowerPoint files via URL or base64 upload and returns a PDF for USD 0.01 per call, paid in USDC through x402 with no account or API key required. The same converter is exposed as the convert_office_to_pdf tool in the site's documents MCP server, and a test call converted a 1.3 MB nine-page Word document into a nine-page PDF. The service detects format from content rather than filename, rejects unsupported or encrypted files with 422 errors, and notes that LibreOffice rendering may differ from Microsoft Office, with Calibri and Cambria substituted by metric-compatible fonts.", "body_md": "`POST https://tanod.dev/v1/docs/to-pdf` turns an Office document into a PDF. Send a public `url` or the file as `file_base64` with its `filename`. It costs USD 0.01 per call, paid in USDC through x402, with no account and no API key. The same converter is the `convert_office_to_pdf` tool in the [documents MCP server](https://tanod.dev/learn/pdf-ocr-mcp-server.html) at `https://tanod.dev/mcp/docs`.\n\nWord: DOCX, DOC, ODT, RTF. Excel: XLSX, XLS, ODS. PowerPoint: PPTX, PPT, ODP. The format is detected from the content, not the file name. Other files get `422 unsupported_format`; password-protected documents get `422 encrypted_document`.\n\n```\ncurl -s -X POST https://tanod.dev/v1/docs/to-pdf \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"https://example.com/report.docx\"}'\n```\n\nWithout payment the answer is `402 Payment Required` with the price in USDC; an x402 client signs and repeats the call. Our own test call converted a 1.3 MB nine-page Word document to a nine-page PDF. The reply carries `pages`, the detected `format`, the PDF as base64 in `file`, `active_content_removed` and a `fidelity_note`.\n\n`javascript:` or `file:` are dropped and counted.`422 unsafe_xml`.\nLibreOffice renders the document, so layout and page breaks can differ from Microsoft Office. Calibri and Cambria are replaced by metric-compatible fonts, and Chinese, Japanese, Korean and Devanagari text renders with Noto fonts.\n\nFull guide, kept current: [https://tanod.dev/learn/office-to-pdf-api.html](https://tanod.dev/learn/office-to-pdf-api.html)", "url": "https://wpnews.pro/news/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call", "canonical_source": "https://dev.to/tanod/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call-5adl", "published_at": "2026-10-09 00:45:43+00:00", "updated_at": "2026-10-09 00:48:18.289314+00:00", "lang": "en", "topics": ["ai-tools", "agent-protocols", "developer-tools"], "entities": ["tanod.dev", "LibreOffice", "Microsoft Office", "x402", "USDC", "Noto"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call", "markdown": "https://wpnews.pro/news/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call.md", "text": "https://wpnews.pro/news/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call.txt", "jsonld": "https://wpnews.pro/news/office-to-pdf-api-word-excel-and-powerpoint-to-pdf-pay-per-call.jsonld"}}