Skip to main content
Insert automatic page numbers in headers and footers. Dynamic page numbering that updates as document changes, with total page count support.

OOXML Structure

Use case

  • Professional documents - Standard page numbering
  • Reports - Page X of Y format
  • Legal documents - Required pagination
  • Print layouts - Automatic page tracking
  • Dynamic updates - Numbers adjust as content changes

Options

Configure the extension behavior:
Object
HTML attributes for page number elements

Commands

addAutoPageNumber

Insert an automatic page number
Only works in header/footer contexts
Example:
Returns: Function Command function

addTotalPageCount

Insert total page count
Only works in header/footer contexts
Example:
Returns: Function Command function

Keyboard shortcuts

Source code