JSON API - removeElement
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
removeElement
PREMIUM
TRIAL / ADVANCED
Removes elements in the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to removeElement.
JSON data
| Key | Description |
|---|---|
| target |
|
| type |
|
| contains | Contains a text string. For paragraph, run, shape, table, table-row, table-cell, table-cell-paragraph 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. |
Code samples
Example #1
A template can be a local file, a Base64 string, or a remote file.
Example #2
A template can be a local file, a Base64 string, or a remote file.
Release notes
- phppptx 5.0:
- new action.