About this endpoint
What it does
Converts an uploaded Word document into a PDF and returns the PDF as a binary download. The request sends the source file in the body, and the response is the generated PDF file.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| output | String | No | Output filename for the generated PDF. |
| landscape | Boolean | No | Whether to generate the PDF in landscape mode. Default: false. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The document to convert. Binary upload. Supported formats: .doc, .docx, .odt, or .rtf. |
Response
Returns a binary file containing the converted PDF. The success response is a raw binary download rather than a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| response | String | Yes | Binary PDF content returned by the endpoint. |