PptxCustomizer
PptxCustomizer
PptxCustomizer is a functionality available for Premium licenses only. It includes the public method customizeElementStyles, which changes the content styles of new presentations and templates on the fly.
PptxCustomizer supports dozens of styles for all the most common contents of a presentation: shapes (text boxes), images, paragraphs, run of texts, tables, audios, videos, diagrams...
The signature used by this method is the following:
The method uses two parameters:
- $referenceNode: a reference of the content you want to change. It is indicated with a query with the PptxPath syntaxis.
- $options: an array of the styles you want to apply.
The following script changes on the fly the styles of the paragraph that contains the text "PowerPoint", adding a center align, bold text, a highlight color and a new font size:
Shapes in slides and slide layouts can be customized too, for example setting a fill color and new positions and sizes:
Almost all styles of every content existing in a PowerPoint presentation can be customized with the customizeElementStyles method.
You can check all options available for PptxCustomizer in its API documentation.