๐Ÿ“„

Document Convert API

Convert documents between formats โ€” DOCX, PPTX, HTML, Markdown, PDF โ€” powered by LibreOffice and Pandoc.

API Docs $0.003 / conversion

About this tool

Convert documents between popular formats using LibreOffice (for office formats) and Pandoc (for Markdown/HTML). Supply content directly or via URL. The converted file is served from a public URL.

  • ๐Ÿ“ DOCX โ†’ PDF (LibreOffice)
  • ๐Ÿ“Š PPTX โ†’ PDF (LibreOffice)
  • ๐ŸŒ HTML โ†’ PDF (LibreOffice)
  • ๐Ÿ“„ PDF โ†’ DOCX (LibreOffice)
  • โœ๏ธ Markdown โ†’ HTML (Pandoc)
  • โœ๏ธ Markdown โ†’ PDF (Pandoc)
  • ๐ŸŒ HTML โ†’ Markdown (Pandoc)

Quick Start โ€” MD to HTML

curl -X POST https://api.iteratools.com/document/convert \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "content": "# Hello World\n\nThis is **bold** text.", "from_format": "md", "to_format": "html" }'

Quick Start โ€” DOCX to PDF via URL

curl -X POST https://api.iteratools.com/document/convert \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/report.docx", "from_format": "docx", "to_format": "pdf" }'

Response

{ "success": true, "url": "https://api.iteratools.com/files/abc123.pdf", "format": "pdf", "size_bytes": 48320 }

Parameters

ParamTypeDescription
urlstringPublic URL of document to convert (optional if content provided)
contentstringDocument content โ€” plain text or base64 for binary (optional if url provided)
from_formatstringSource format: docx, pptx, html, md, pdf
to_formatstringTarget format: pdf, docx, html, md

Pricing

$0.003 per conversion via x402 micropayment on Base (USDC). Timeout: 60 seconds.

Full Documentation Browse All Tools