About this endpoint
What it does
Renders either a public URL or raw HTML into a PDF. You can also supply additional PDF source URLs to merge after the render step.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes (if html not provided) | Public URL to render to PDF. |
| html | String | Yes (if url not provided) | Raw HTML content to render. |
| page_size | ENUM | No | Allowed values: A4, Letter, Legal.<br>Default: A4. |
| merge_urls | String Array | No | Optional list of source PDF URLs to merge after rendering. |
Response
Returns a binary file response containing the generated PDF. The output schema is a single string with binary format, so the success payload is the PDF content itself rather than a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| response body | String | Yes | Binary PDF content returned by the endpoint. |