JSON API - addText
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addText
PREMIUM
TRIAL / ADVANCED
Inserts a text into the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to addText.
JSON data
| Key | Description |
|---|---|
| text | Text content. |
| bold | |
| characterSpacing | |
| color | HEX color. |
| font | Font family. |
| fontSize | 8, 9, 10, 11... |
| highlight | HEX color. |
| hyperlink | Hyperlink. External, bookmark (#firstslide, #lastslide, #nextslide, #previousslide) or slide (#slide with position). |
| italic | |
| lang | Language. |
| strikethrough | |
| transparency | 0 to 100. |
| 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.
|
| align | left, center, right, justify, distributed. |
| indentation | EMUs (English Metric Unit) |
| lineSpacing | 1, 1.5, 2... |
| listLevel | 0, 1, 2... |
| listStyles | view addList |
| marginLeft | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| marginRight | EMUs (English Metric Unit) (0 >= and <= 51206400) |
| noBullet | No bullet added. Default as true |
| parseLineBreaks | If true parses the line breaks. Default as false |
| spacingAfter | points (0 >= and <= 158400) |
| spacingBefore | points (0 >= and <= 158400) |
| insertMode |
Insert mode if the position contains an existing content:
Default as append. |
Code samples
Example #1
Release notes
- phppptx 5.0:
- new action.