setPresentationSettings

setPresentationSettings

BASIC / ADVANCED / PREMIUM

Sets presentation settings.

Description
public setPresentationSettings($options = array())

This method sets presentation settings.

Parameters

options

Key Type Description
height int Measurement in EMUs (914400 >= and <= 51206400).
notes array

Notes slide properties.

  • 'height' (int)
  • 'width' (int)
rtl bool Set to true for right to left, or use the rtl option in config/phppptxconfig.ini.
readOnly bool Set as read only.
type string
  • 35mm
  • 35mm-portrait
  • A3
  • A3-portrait
  • A4
  • A4-portrait
  • B4ISO
  • B4ISO-portrait
  • B5ISO
  • B5ISO-portrait
  • banner
  • banner-portrait
  • ledger
  • ledger-portrait
  • letter
  • letter-portrait
  • overhead
  • overhead-portrait
  • screen16x10
  • screen16x10-portrait
  • screen16x9
  • screen16x9-portrait
  • screen4x3
  • screen4x3-portrait
  • standard
  • standard-portrait
  • widescreen
  • widescreen-portrait
  • custom
width int Measurement in EMUs (914400 >= and <= 51206400).
Code samples

Example #1

The resulting PPTX looks like:

Release notes
  • phppptx 3.0:
    • apply RTL settings if enabled.
  • phppptx 2.0:
    • readOnly option.
  • phppptx 1.0:
    • new method.