/// CONVERT
2 credits

Word to PDF API — Office documents in, PDFs out

DOCX, XLSX, PPTX, ODT — one endpoint.

/// Quick answer

`office-to-pdf` converts Word, Excel and PowerPoint files to PDF in one request. The conversion itself is the easy part; the two things that surprise people are font substitution changing where lines break, and wide spreadsheets splitting across pages because fit-to-page is off by default.

Try Word to PDF API — free →Read the docs

Free account. No card required.

How does the Word to PDF API work?

One HTTP request from any language. Every ASHDOCS endpoint uses the same X-API-Key header.

curl -X POST https://www.ashdocs.com/api/v1/tools/office-to-pdf \
  -H "X-API-Key: ash_live_..." \
  -F "files=@report.docx"

Common use cases

Frequently asked questions

Which formats can it convert?+

Word, Excel and PowerPoint files — doc, docx, xls, xlsx, ppt, pptx — their OpenDocument equivalents odt, ods and odp, and rtf, txt, csv and tsv.

Why is my PDF's page count different from Word's?+

Font substitution. The converter recomputed line breaks with the fonts it has. Use metric-compatible fonts in the template.

What does it cost?+

Two credits per conversion.

RELATED TOOLS