About this endpoint
What it does
Fetches a PDF from a URL, stamps a header and/or footer onto it, and returns a signed URL to the processed PDF.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file_url | String | Yes | URL of the source PDF. Required. |
| footer | String | No | Additional footer content. |
| header | String | No | Additional header content. |
| font_size | Number | No | Font size for the stamp text. Minimum 8, maximum 24. |
| footer_text | String | No | Footer text content. One of footer_text or footer_image_url is required. |
| header_text | String | No | Header text content. One of header_text or header_image_url is required. |
| font_opacity | Number | No | Opacity for the stamp text. Minimum 0, maximum 1. |
| footer_opacity | Number | No | Opacity for the footer stamp. Default: 1. Minimum 0, maximum 1. |
| header_opacity | Number | No | Opacity for the header stamp. Default: 1. Minimum 0, maximum 1. |
| footer_alignment | ENUM | No | Footer alignment. Allowed values: left, right, center. Default: center. |
| footer_font_size | Number | No | Footer font size. Default: 12. Minimum 8, maximum 24. |
| footer_image_url | String | No | URL of a PNG image. Required if footer_text is not given. |
| header_alignment | ENUM | No | Header alignment. Allowed values: left, right, center. Default: center. |
| header_font_size | Number | No | Header font size. Default: 12. Minimum 8, maximum 24. |
| header_image_url | String | No | URL of a PNG image. Required if header_text is not given. |
| footer_image_size | Number | No | Footer image size. Default: 0.1. Minimum 0.1, maximum 1. |
| header_image_size | Number | No | Header image size. Default: 0.1. Minimum 0.1, maximum 1. |
Response
Returns a JSON object with a url string field containing the signed URL of the processed PDF.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | Signed URL to the stamped PDF. |