addList
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addList
BASIC / ADVANCED / PREMIUM
Inserts a list into the PowerPoint presentation.
Description
public addList($contents, $position, $listStyles = array(), $options = array())
This method inserts lists into the PowerPoint presentation.
Parameters
contents
Array of text contents and styles. PptxFragments can be used to add contents.
| Key | Type | Description |
|---|---|---|
| text | string|array | See addText for text styles. |
| bold | bool | |
| characterSpacing | int | |
| color | string | HEX color. |
| font | string | Font family. |
| fontSize | int | 8, 9, 10, 11... |
| highlight | string | HEX color. |
| italic | bool | |
| lang | string | Language. |
| strikethrough | bool | |
| underline | string | Underline: single. |
position
| Key | Type | Description |
|---|---|---|
| placeholder | array |
The content is added in a placeholder of the layout. One of the following options can be used to get the text box.
|
| new | array |
A new position is generated.
|
listStyles
Array for each list level.
| Key | Type | Description |
|---|---|---|
| color | string | HEX color. |
| font | string | Font family. |
| indent | int | EMUs (English Metric Unit) default as -250000. |
| marginLeft | int | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| marginRight | int | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| size | int | % of text. |
| startAt | int | Start at value. |
| type | array |
|
options
| Key | Type | Description |
|---|---|---|
| insertMode | string |
Insert mode if the position contains an existing content:
Default as append. |
Exceptions
Position not valid.
Code samples
Release notes
- phppptx 1.0:
- new method.