JSON API - moveElement

moveElement

PREMIUM TRIAL / ADVANCED

Moves elements in the PowerPoint presentation.

Note

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

JSON data

referenceNode

Key Description
target
  • slide (default value)
type
  • audio
  • image
  • shape (text box) (default value)
  • slide
  • table
  • video
contains Contains a text string. For shape, table types.
occurrence
  • (number) exact occurrence from 1
  • (array) occurrences
  • (string) range of contents (e.g.: "2..9", "2..", "..9"), "first()", "last()"
attributes Contains a specific attribute key and value. Node or descendant attributes.
parent Immediate children (default as '/', any parent) or any other parent (a:tbl/, p:sp/...).
rootParent Root parent. Default as p:spTree for slide elements and p:presentation for presentation elements.
customQuery Custom XPath query, overwrites any other reference.

referenceNodeTo

Key Description
target
  • slide (default value)
type
  • slide (default value)
contains Contains a text string. For shape, table types.
occurrence
  • (number) exact occurrence from 1
  • (string) range of contents (e.g.: "2..9", "2..", "..9"), "first()", "last()"
attributes Contains a specific attribute key and value. Node or descendant attributes.
parent Immediate children (default as '/', any parent) or any other parent (a:tbl/, p:sp/...).
rootParent Root parent. Default as p:spTree for slide elements and p:presentation for presentation elements.
customQuery Custom XPath query, overwrites any other reference.
Code samples

Example #1

A template can be a local file, a Base64 string, or a remote file.

Release notes
  • phppptx 5.0:
    • new action.