addFooterSlide

addFooterSlide

BASIC / ADVANCED / PREMIUM

Inserts footers into the PowerPoint presentation.

Description
public addFooterSlide($type, $options = array())

This method adds footers in slides.

Parameters

type

Valid footer types: dateAndTime, slideNumber, textContents.

options

Key Type Description
applyToAll bool If true apply to all slides. Default as false.
contentStyles array Use with dateAndTime and slideNumber types. Using the textContents type, the PptxFragment must include the styles to be applied.
dateAndTime string Set a fixed date and time. If not set, update automatically.
dateAndTimeLanguage string en-US, es-ES...
dateAndTimeType string
  • datetime
  • datetimeFigureOut
  • datetime1
  • datetime2
  • datetime3
  • datetime4
  • datetime5
  • datetime6
  • datetime7
  • datetime8
  • datetime9
  • datetime10
  • datetime11
  • datetime12
  • datetime13

Available when not using a fixed date and time.

hideOn string If set, hide the footer on the slides that use the layout. Example: Title Slide.
textContents PptxFragment Add a text content. Default as empty pararagraph.
Exceptions

Type not valid.

Code samples

Example #1

The resulting PPTX looks like:

Example #2

The resulting PPTX looks like:

Release notes
  • phppptx 2.5:
    • new method.