Add page number

Belongs to

What it does

Adds page numbers (including section and chapter numbers) to a PDF.

Note: The Global Change Add Page Number provides the same functionality.

How it works

You must first create a sample piece of text, which will be used to determine the format and style used for page numbering (font, color, size etc):
  • If you want to add a page number only, the sample should only be a number, e.g. "3".
  • If you want to add a page number with more information (for example: include the word "Page" and the total number of pages) add this to the sample, e.g. "Page 1 of 10".

The text strings (including spaces and punctuation) in this sample will be used as they are. For the numbers in this sample, you should indicate which one refers to the page number, hence should be considered a variable. For example, if your sample is "Page 1 of 10", "1" refers to the page number (Page %pagenr% of 10) and will be different on each page. "10" will not be changed, as it is not possible to use variables for other information than page numbers.

How to proceed

  1. Create an example piece of text.
  2. Select the sample by using the PitStop Select Objects tool .
  3. In the attributes of the Action, click the Grab Sample from Selection button.

    The sample text appears in the Sample field.

  4. Specify the position of the page numbers relative to the text and one of the page boxes. You can use a default offset, manually enter offset values or grab the document's offset values.
  5. To start numbering on a different page than the first page of the document, enter the page number. For example, if you want to start numbering after the table of contents, for example on the third page of the document, enter "3".
  6. If your sample text contains numbers, the Variable number sequence list is activated. This list allows you to indicate which number should be considered a variable (indicated by "%pagenr%").
    For example, if your sample text is "Page 2, Section 1", you will have three options:
    • "Page 2, Section 1" will insert "Page 2, Section 1" on every page.
    • "Page %pagenr%, Section 1" will insert "Page 1, Section 1" on page 1, "Page 2, Section 1" ...(Section 1 will not change)
    • "Page 2, Section %pagenr%" will insert "Page 2, Section 1" on page 1, "Page 2, Section 2" ...(Page 2 will not change)
  7. Switch to the Options tab and select the appropriate checkbox:
    • Remove any overlapping text will remove existing page numbers.
    • Only number pages that already have a number will not add page numbers to pages that currently don't have any.
    • Add white background ensures that the page numbers are visible, even if the PDF has a dark background.