About this endpoint
What it does
Uploads a PDF, adds the requested header and/or footer content, and returns the modified PDF as a binary file download. You can supply header/footer text, PNG images, or a combination of those options.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | PDF file to modify. |
| output | String | No | Output filename stem (without extension). Defaults to output. |
| footer_text | String | No | Footer text. Use {page} as a placeholder for the page number. |
| header_text | String | No | Header text. At least one of header_text, footer_text, header_image, or footer_image is required. |
| footer_image | String | No | Footer image (PNG). |
| header_image | String | No | Header image (PNG). |
| footer_alignment | ENUM | No | Alignment for the footer. Allowed values: left, center, right. Default: center. |
| header_alignment | ENUM | No | Alignment for the header. Allowed values: left, center, right. Default: center. |
Response
Returns a binary file containing the modified PDF. The output schema is a single binary string, so the success response is the downloaded PDF content itself.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary response | String | Yes | The modified PDF file returned as binary data. |