About this endpoint
What it does
Uploads a PDF file and returns a modified PDF with a header and/or footer added. You can supply header/footer text or PNG images, and optionally control alignment and output filename stem.
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 response containing the modified PDF as a downloadable document.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary PDF content returned by the endpoint. |
Notes
At least one of header_text, footer_text, header_image, or footer_image must be provided; otherwise the request body does not satisfy the schema.