Skip to main content
POST
https://api.iyzpdf.com/v1
/
convert
/
word-to-pdf
curl
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
{
  "fileName": "output.pdf",
  "size": 183240,
  "creditsUsed": 1,
  "creditsRemaining": 49,
  "contentType": "application/pdf"
}

Notes

  • Credits: 2
  • Only .docx is supported
  • Authenticated uploads are limited to 100 MB
  • Corrupted or renamed Office files are rejected
  • The generated output file name is word.pdf

Authorizations

X-API-Key
string
header
required

Send your server-side API key in the X-API-Key header.

Body

multipart/form-data
file
file
required

.docx file upload.

Response

Successful response.

fileName
string
required
size
integer<int32>
required
creditsUsed
integer<int32>
required
contentType
string
required
creditsRemaining
integer<int32> | null