About this endpoint
What it does
Captures the public web page at the given URL and returns the result as a PDF download. The request sends the page URL in the body and can optionally control PDF output through query parameters.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| margin | Number | No | PDF margin, with a default of 0.1 and allowed range 0 to 1. |
| output | String | No | Output filename for the PDF download. |
| landscape | Boolean | No | Sets the PDF orientation; defaults to false. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Public URL to capture as a PDF. Must be a valid URI. |
Response
Returns a binary file response containing the generated PDF. The output schema is a binary string, so the success response is the downloaded PDF content rather than a JSON object.