JSON API - cloneElement
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
cloneElement
PREMIUM
TRIAL / ADVANCED
Clones elements in the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to cloneElement.
JSON data
| Key | Description |
|---|---|
| target |
|
| type |
|
| contains | Contains a text string. For paragraph, run, shape, table, table-row types. |
| occurrence |
|
| 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. |
| name | Custom internal name. If not set, a random name is generated. |
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.