addProperties

addProperties

BASIC / ADVANCED / PREMIUM

Modifies the presentation properties.

Description
public addProperties($values)

This method modifies the properties of the PowerPoint presentation.

With this method it is possible to modify/add the properties:

  • title
  • subject
  • author (creator)
  • keywords
  • description
  • category
  • created, modified
  • lastModifiedBy
  • revision
  • Manager
  • Company
  • custom properties (name, type and value)

Parameters

values

The possible keys and values of this array are:

Key Type Description
title string The title of the presentation.
subject string The subject of the presentation.
creator string The presentation author or creator.
keywords string A list of keywords that may be separated by any character you wish.
description string The description of the presentation.
category string The category to which you want to associate the presentation.
Manager string The name of the associated Manager.
Company string The company name.
created string The created date (W3CDTF without time zone).
modified string The modified date (W3CDTF without time zone).
lastModifiedBy string The username that modified the presentation.
revision string The revision number.
custom array An array of custom properties. Each entry is composed by the name of the property as key and a value that is itself an array with the type and actual value of the variable.
Code samples

Example #1

The resulting PPTX looks like:

Release notes
  • phppptx 1.0:
    • new method.