removeSection
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
removeSection
ADVANCED / PREMIUM
BASIC
Removes sections and their associated slides from a PowerPoint presentation.
Description
public removeSection($source, $target, $options)
This method allows to remove sections and their associated slides in a PPTX presentation.
Parameters
source
The path to the source PPTX file.
target
The path to the resulting PPTX file.
options
| Key | Type | Description |
|---|---|---|
| sectionNumber | array | Section numbers (int) to remove. 1 is the first section. |
| sectionName | array | Section names (string) to remove. |
| removeSlides | bool | If true, remove the slides associated with the section. Default as false. |
Code samples
Example #1
Release notes
- phppptx 5.0:
- new method.