JSON API - addList
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addList
PREMIUM
TRIAL / ADVANCED
Inserts a list into the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to addList.
JSON data
| Key | Description |
|---|---|
| contents | Array of text contents and styles. PptxFragments can be used to add contents. |
| bold | |
| characterSpacing | |
| color | HEX color. |
| font | Font family. |
| fontSize | 8, 9, 10, 11... |
| highlight | HEX color. |
| italic | |
| lang | Language. |
| strikethrough | |
| text | Text content. |
| underline | Underline: single. |
| placeholder |
The content is added in a placeholder of the layout. One of the following options can be used to get the text box.
|
| new |
A new position is generated.
|
| indent | EMUs (English Metric Unit) default as -250000. |
| marginLeft | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| marginRight | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| size | % of text. |
| startAt | Start at value. |
| type |
|
| insertMode |
Insert mode if the position contains an existing content:
Default as append. |
Code samples
Example #1
Example #2
Release notes
- phppptx 5.0:
- new action.