About this endpoint
What it does
Converts the provided HTML content string into a PDF and returns the PDF as a binary response. You can optionally set the output filename and whether the PDF is rendered in landscape orientation.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| output | String | No | Output filename for the generated PDF. |
| landscape | Boolean | No | Render the PDF in landscape orientation. Default: false. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| content | String | Yes | HTML content to convert to PDF. |
Response
Returns a binary response containing the generated PDF file. The output schema is a single string with binary format, so the response body is the PDF content itself rather than a JSON object.
Notes
The request body is unwrapped before forwarding, so send content directly in the JSON body rather than nesting it under a body field.