PRODUCT / GENERATION & CONVERSION

Office to PDF API

Convert Word, Excel, PowerPoint, and other Office files to PDF through POST /v1/convert. LibreOffice runs in a Cloudflare Container, not on POST /v1/pdf.

Read the implementation guide
DOCUMENT / 001PDF · A4
a.Acme StudioDesign with intention.

Invoice

INV—2026—042
September 07, 2026
Northstar Labs

120 Market Street
San Francisco, CA 94103

Due September 21, 2026
USD · Bank transfer

DESCRIPTIONQTYAMOUNT
Brand identity system1$2,400.00
Website design1$4,800.00
Development handoff1$1,200.00
Subtotal$8,400.00
Tax (0%)$0.00
Total due$8,400.00
Thank you for building with us.01 / 01
templateData{ "total": 8400 }
invoice.pdfSample output · ready to inspect
HTML + DATAPRODUCTION PDF

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