Practical phppptx
Settings
phppptx provides the necessary methods to modify the layout and settings of the presentation and slides, as well as set the internal properties such as author, description and keywords.
A presentation has internal properties such as subject, creator, description or categories. Besides, it counts with full-customizable properties in its name and value.
phppptx includes addProperties to define the properties:
$values is an array of the properties to be added. Besides its predefined properties like subject or creator, the custom key allows to add new properties.
E.g., for inserting multiple properties in the presentation, use the code:
The method for applying the presentation settings is setPresentationSettings.
It allows setting options such as the presentation type or notes properties.
The following sample code sets A3 as the presentation format:
The method for applying slide settings is setSlideSettings. For example, to apply a new layout to the active slide:
The setRtl method sets global right to left options.