removeVariableText

removeVariableText

BASIC / ADVANCED / PREMIUM

Removes text placeholder variables from the PowerPoint presentation.

Description
public removeVariableText($variables, $options = array())

This method allows to remove text placeholder variables.

Parameters

$variables

Array of variables to remove.

options

Key Type Description
activeSlide bool If true, get only the active slide. Default as false.
target string
  • slides (default)
  • notesSlides
  • slideLayouts
  • slideMasters
type string
  • inline: (default) remove only the variable.
  • block: remove the variable and its containing paragraph.
Code samples

Example #1

Release notes
  • phppptx 3.5:
    • type option.
  • phppptx 3.0:
    • notesSlides, slideLayouts and slideMasters targets.
  • phppptx 1.0:
    • new method.