Papyx

Number a PDF, including from page 3

Position on the page, number format, starting page: the three settings that make numbering land correctly. The format is written with variables — "{n} / {total}" gives "4 / 12" — and the starting page handles the common case of a cover that should not count.

Like the watermark, numbering is a structural addition: the page's existing content is left alone.

Reads
PDF
Writes
PDF
Engine
pdf-lib
Protected documents
not supported

Number the pages of a PDF, in the format you want

  1. Open the PDF

    Or carry on straight from a merge, without a round trip through the disk.

  2. Choose the position

    Where the number sits on the page.

  3. Set the format

    A plain number, or "{n} / {total}" to show the page count too.

  4. Set the start

    The first page to number, when a cover should not count.

Worth knowing

  • Format with variables

    "{n}" for the number, "{total}" for the page count, and whatever text you want around them.

  • Starting page

    Numbering can begin after the cover or the table of contents.

  • Position of your choice

    The number lands where your layout expects it.

  • Non-destructive

    Like every tool built on pdf-lib, this one leaves the page's content untouched.

Limits

  • Numbers are written in Helvetica: extended Latin works, non-Latin alphabets do not.

  • One numbering per document — Papyx does not handle double or per-section numbering.

Questions about “Page numbers”

Can I start numbering at page 3?

Yes: the starting page is an explicit setting, precisely for documents whose cover and contents page should not count.

How do I show "4 / 12" rather than "4"?

Write the format as "{n} / {total}": {n} is replaced by the page number, {total} by the document's page count.

Can I number several PDFs at once?

Yes, the whole batch runs as one job. And a document merged a moment earlier can be numbered without being saved first.