JSON API - addSlide

addSlide

PREMIUM TRIAL / ADVANCED

Inserts a new slide into the PowerPoint presentation.

Note

You are reading the JSON API documentation. For the PHP API method please go to addSlide.

JSON data
Key Description
active If true set as internal active slide. Default as false.
cleanLayoutParagraphContents If false do not remove paragraph contents from the layout. Default as true.
cleanSlidePlaceholderTypes

Placeholder types to be cleaned from the layout.

Default as: dt, ftr, hdr, sldNum.

Allowed types:

  • title (Title)
  • body (Body)
  • ctrTitle (Centered Title)
  • subTitle (Subtitle)
  • sldNum (Slide Number)
  • ftr (Footer)
  • hdr (Header)
  • obj (Object)
  • chart (Chart)
  • tbl (Table)
  • clipArt (Clip Art)
  • dgm (Diagram)
  • media (Media)
  • sldImg (Slide Image)
  • pic (Picture)
layout

Layout (name) to be used. If not set, the layout from the active slide is used.

Default layouts:

  • Title Slide
  • Title and Content
  • Section Header
  • Two Content
  • Comparison
  • Title Only
  • Blank
  • Content with Caption
  • Picture with Caption
  • Title and Vertical Text
  • Vertical Title and Text
position Slide position. 0 is the first slide. -1 (last) as default. If section is set, use this position to add the slide in the section.
section Section to add the slide. 0 is the first section. -1 is the last section. If not set, the slide is not added in a section.
Code samples

Example #1

Example #2

Release notes
  • phppptx 5.0:
    • new action.