slide-numbersfooterspowerpointapi

Overview

Slide numbers and footers help audiences navigate long presentations and provide context like date, company name, or confidentiality notices. This guide covers how these elements work in OPF presentations.

The Headers & Footers gallery shows the OPF configuration patterns behind common slide number, date, logo, and confidentiality footer choices.

How Slide Numbers Work

PowerPoint files include built-in placeholders for:

  • Slide number — auto-incrementing page number
  • Footer text — custom text repeated on every slide
  • Date/time — current date or fixed date stamp

Use the OPF header and footer settings to choose which information to show.

Enabling Slide Numbers

In a PowerPoint template with slide-number placeholders, recipients can turn them on:

  1. Open the .pptx file in PowerPoint
  2. Go to Insert → Header & Footer
  3. Check Slide number and optionally Footer
  4. Click Apply to All

Live Slide Numbers and Dates from OPF

In an OPF deck, footer and header text uses {{ }} variables (see the Headers & Footers gallery). The PowerPoint export writes them as PowerPoint's own fields where PowerPoint has one:

  • {{slide.number}} is PowerPoint's slide-number field, also with words around it ("Page {{slide.number}}"), so PowerPoint renumbers the slides when you move them.
  • A current date (date: true with a dateFormat) is PowerPoint's date field when PowerPoint has a date field in that format; otherwise it is the date as text.
  • {{deck.slideCount}} and {{slide.section}} are written as text, because PowerPoint has no field for them.

Keynote does not keep a slide-number field that has words around it; for a deck bound for Keynote, export with slideNumberFields: "static" to write the numbers as text.

Footer Best Practices

Common footer content for business presentations:

Use case Footer text
Confidential decks "CONFIDENTIAL — Do not distribute"
Client presentations "Prepared for [Client Name]"
Internal reviews "Internal Use Only"
Conference talks "Company Name — Event Name 2026"

Slide Numbers vs. Page Numbers

  • Slide numbers appear on individual slides in the presentation
  • Page numbers appear when printing the presentation as handouts

Both are controlled by the same PowerPoint header/footer system and are embedded in the .pptx file structure.

Working with Placeholders

PowerPoint presentations use a placeholder system:

  • Title placeholder — the main heading on each slide
  • Body placeholder — supporting text, lists, or content
  • Footer placeholder — bottom-of-slide text
  • Slide number placeholder — auto-incrementing number
  • Date placeholder — date display

Use the appropriate OPF fields for slide content, headers and footers. PowerPoint templates can also define placeholders in their slide master.

Next Steps