Practical phppptx
Footers and notes
Footers can be added to slides with the addFooterSlide method.
This method place contents in the footer targets allowed in the PPTX slides: dateAndTime (left position), slideNumber (right position) and textContents (center position). Contents can be shown in all slides or can be different for each slide.
Notes are added using the addNotes method.
The addFooterSlide method adds new footers:
This method includes the following parameters:
- $type: dateAndTime, slideNumber, textContents. The positions of these footer types are preset in the slide.
- $options: extra options to apply styles, formats and other settings
Add a dateAndTime footer in the active slide:
Add a slideNumber footer in all slides:
Add a text content with styles in the active slide:
Custom styles can be applied to the footer content using the contentStyles option for dateAndTime and slideNumber types, and in the PptxFragment for the textContents type.