> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iyzpdf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Office And CSV Guide

> Prepare Word, Excel, and CSV files correctly before sending them to IyzPdf.

The Office conversion endpoints accept multipart file uploads and return a PDF synchronously.

## Supported Endpoints

| Endpoint                     | Input   | Credits |
| ---------------------------- | ------- | ------- |
| `POST /convert/word-to-pdf`  | `.docx` | 2       |
| `POST /convert/excel-to-pdf` | `.xlsx` | 2       |
| `POST /convert/csv-to-pdf`   | `.csv`  | 1       |

## 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

```bash theme={null}
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.
