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

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.

Inputs of Office to PDF Converter
FieldTypeDefaultDescription
file (required)file—Office document. Max 100 MB. Macros are never run.
pdfabooleanfalseCreate 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)

{
  "mcpServers": {
    "office-to-pdf-converter": { "type": "http", "url": "https://officetopdfconverter.usefulweb.site/mcp" }
  }
}