Tools API Blog
Sign in Create account

PDF page numbers

Page numbers is an API that adds numbering to a PDF that doesn't have any. Great for reports, contracts or dossiers generated from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF and get back the same PDF with a number added to every page, bottom-center by default. You can choose the position, the text format (just the number, or "3 of 10"), which number to start from, and which pages to number. Nothing is stored.

If you only select some pages (to skip a cover page, for example), numbering starts at the number you choose FROM the first selected page: it doesn't use that page's real position in the document.

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

You send your PDF as is (as binary data) and get the numbered PDF back directly. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-page-numbers
  • Send Query Parameters: on, and add whatever you want to change, e.g. position = bottom-right (see the table for the rest).
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)
  • Under Options → Response → Response Format: choose File

In Make (HTTP → Make a request module): same method and URL, options in Query String, the two headers, and the PDF as binary data in the body.

Options (as Query Parameters)

OptionDefaultWhat it does
positionbottom-centerbottom-center, bottom-left, bottom-right, top-center, top-left, top-right.
format{n}The number's text. Use {n} for the number and {total} for the page count, e.g. Page {n} of {total}.
start1The number for the first numbered page.
pagesallWhich pages to number, e.g. 2-10 to skip a cover page.

What you get back

The numbered PDF itself, ready to save or send. (In JSON mode, the PDF comes in base64.)