Product

Office to PDF API

Use POST /v1/convert when the source is Word, Excel, PowerPoint, or another Office file. Chromium on POST /v1/pdf does not open .docx. LibreOffice is the default engine; wkhtmltopdf is available for HTML/URL to PDF compatibility.

Provide file plus sourceFilename with an extension. engine defaults to libreoffice. wkhtmltopdf only supports html or url to pdf.

Supported sources

Word, Excel, PowerPoint, text, images, email files, and other LibreOffice-openable formats.

Targets

to can be pdf, docx, xlsx, html, or png (thumbnail).

curl

Word to PDF using base64 input.

POST /v1/convert
curl https://api.relaypdf.com/v1/convert \
  -H "Authorization: Bearer pdf_live_..." \
  -H "Content-Type: application/json" \
  -d '{"file":"UEsDB...","sourceFilename":"letter.docx","to":"pdf"}' \
  --output letter.pdf