processTemplate
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
processTemplate

Preprocesses a given PPTX template in order to speed up further manipulations over it
This method allows the preprocessing of a PPTX template in order to improve performance in the process of replacing placeholder variables by their corresponding values.
Due to various reasons the PowerPoint interface may split internally the placeholder variables making direct substitution impossible. Even if you may see the placeholder variable correctly displayed in the PowerPoint interface the associated XML node may contain the associated text included in a very cumbersome way (with XML tags splitting the variable name in different chunks).
Although phppptx deals by itself with that extra complications the process may require multiple manipulations, which for presentations with a very large number of placeholders variables, may considerably slow down the output.
By preprocessing the PPTX template you make sure that all variables are already properly cleaned so the substitution may be carried out at a very fast pace.
It is convenient to run this method independently and keep the resulting presentation in a separate repository of processed templates.
Example #1
- phppptx 4.0:
- new method.