apyhub
FILE CONVERSION · FILE MANIPULATION

Apply Footers on PDF API

What it does

PDF Header Footer stamps a header and footer onto an existing PDF, using either text or PNG images. Send a source PDF as an uploaded file or by URL, choose the header and footer content, and get back the modified document.

Use the file-based endpoints when you want the processed PDF streamed directly back, or the URL-based endpoints when you want a signed URL for the stamped file. The input supports file or file_url, plus header_text or header_image_url for the header and footer_text or footer_image_url for the footer. When both text and image are provided for the same slot, text wins.

You can also control presentation details like alignment, font size, and opacity. Shared settings such as font_size and font_opacity apply as fallbacks, while header_font_size, footer_font_size, header_alignment, footer_alignment, header_opacity, and footer_opacity let you tune each edge independently. Image stamps support header_image_size and footer_image_size for sizing PNG logos or marks.

Use PDF Header Footer for document branding, report pagination labels, draft or confidentiality marks, and internal distribution copies that need consistent top and bottom text or imagery.

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