apyhub
FILE MANIPULATION

Apply Watermark and Footers on PDF API

What it does

PDF Header Footer adds text or PNG images to the top and bottom of a PDF, then returns the modified file as a download link or a binary response.

Send a PDF as a file upload or a publicly accessible URL. You can add header_text or footer_text, and the footer text can include {page} as a placeholder for the page number. If you prefer branded output, provide header_image / footer_image for file uploads or header_image_url / footer_image_url for URL-based jobs. Header and footer alignment can be set to left, center, or right.

Use PDF Header Footer when you need to stamp internal documents with a confidentiality notice, add page numbers to reports, or apply consistent branding across exported PDFs. The service supports both upload-to-download and upload-to-S3 URL workflows, so you can fit it into batch processing as well as direct user-facing document tools.

The output is either a binary PDF or an object containing a url, depending on the endpoint you call.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.