API & MCP
Everything a person can do on Office to PDF Converter, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://officetopdfconverter.usefulweb.site/api/v1/calculate– run Office to PDF ConverterGET https://officetopdfconverter.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Office to PDF Converter
Converts DOCX, DOC, ODT, RTF, PPTX, PPT, ODP, XLSX, XLS, ODS and CSV files to PDF (optionally PDF/A-2b) with LibreOffice running headless on our server. Reports the page count and the fonts used in the PDF, so you can spot substituted fonts, and shows a preview of page 1.
| Field | Type | Default | Description |
|---|---|---|---|
file (required) | file | — | Office document. Max 100 MB. Macros are never run. |
pdfa | boolean | false | Create PDF/A-2b (for archiving). Embeds all fonts and adds archival metadata; files can be slightly larger. |
Example request
RTF letter to PDF
curl -X POST https://officetopdfconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"notes.rtf","contentType":"application/rtf","contentBase64":"e1xydGYxXGFuc2lcZGVmZjB7XGZvbnR0Ymx7XGYwIExpYmVyYXRpb24gU2VyaWY7fXtcZjEgQ2FsaWJyaTt9fVxmMFxmczM2IE1lZXRpbmcgbm90ZXNccGFyXGZzMjQgQWdlbmRhOiBidWRnZXQsIHRpbWVsaW5lIGFuZCBuZXh0IHN0ZXBzLlxwYXJcZjEgVGhpcyBsaW5lIGFza3MgZm9yIENhbGlicmksIHdoaWNoIGlzIHJlcGxhY2VkIGJ5IGEgbWV0cmljLWNvbXBhdGlibGUgZm9udC5ccGFyfQ=="}}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://officetopdfconverter.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
office_to_pdf_converter - Local stdio connector:
node src/mcp-stdio.ts --tool=office-to-pdf-converter
{
"mcpServers": {
"office-to-pdf-converter": { "type": "http", "url": "https://officetopdfconverter.usefulweb.site/mcp" }
}
}