apyhub
FILE MANIPULATION

Apply Footers on PDF API

Hosted on ApyHub

What it does

PDF Header Footer adds text or PNG images to the top and bottom of a PDF, then returns the updated file or a downloadable URL.

Send a PDF and choose one of four input styles: upload a file or pass a public PDF URL, then receive either a binary download or a JSON response with a url. You can set header_text or footer_text, use {page} in footer text to print the page number, or provide header_image and footer_image / header_image_url and footer_image_url for image-based branding. Alignment is configurable for both header and footer with left, center, or right.

Use PDF Header Footer when you need to stamp invoices, add page numbers, mark internal documents with labels like CONFIDENTIAL, or place a logo on exported reports. The service is built for simple document post-processing: you provide the source PDF and the header/footer content, and it returns a modified PDF ready to store, send, or download.

The /file/download and /url/download endpoints return the modified PDF directly. The /file/url and /url/url endpoints return an S3 URL in a url field, which is useful when your workflow needs a persisted output location instead of a file stream.

▣ 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.