Skip to main content
The Office conversion endpoints accept multipart file uploads and return a PDF synchronously.

Supported Endpoints

EndpointInputCredits
POST /convert/word-to-pdf.docx2
POST /convert/excel-to-pdf.xlsx2
POST /convert/csv-to-pdf.csv1

Shared Rules

  • Use multipart/form-data
  • Send the file in a file part
  • Include X-API-Key on every request
  • Authenticated uploads are limited to 100 MB
  • Successful responses return application/pdf

File Validation Notes

Word

Only valid .docx files are accepted. Corrupted or renamed files are rejected.

Excel

Only valid .xlsx workbooks are accepted. Corrupted or renamed files are rejected.

CSV

CSV uploads must contain readable UTF-8 text. If your source exports another encoding, convert it before upload.

Minimal cURL Pattern

curl --request POST \
  --url https://api.iyzpdf.com/v1/convert/word-to-pdf \
  --header "X-API-Key: $IYZPDF_API_KEY" \
  --form "file=@proposal.docx" \
  --output proposal.pdf
Replace the path and endpoint for Excel or CSV.