JSON API - addShape
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addShape
PREMIUM
TRIAL / ADVANCED
Inserts a shape into the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to addShape.
JSON data
| Key | Description |
|---|---|
| type |
Shape type:
|
| coordinateX | EMUs (English Metric Unit). |
| coordinateY | EMUs (English Metric Unit). |
| sizeX | EMUs (English Metric Unit). |
| sizeY | EMUs (English Metric Unit). |
| name | Internal name. If not set, a random name is generated. |
| order | Set the display order. Default after existing contents. 0 is the first order position. If the order position doesn't exist add after existing contents. |
| customGeom | Custom geometry. |
| fillColor | #FF0000, #00FFFF... |
| flipH | Flip horizontally. Default as false |
| flipV | Flip vertically. Default as false |
| imageContent | Image path, Base64 string, or URL. |
| name | Set a name value. |
| outlineColor | #FF0000, #00FFFF... |
| rotation | 60.000ths of a degree. |
| shapeGuide |
|
| tailEnd |
|
| textDirection |
|
| textContents | Text contents as PptxFragment. |
| verticalAlign |
|
Code samples
Example #1
Release notes
- phppptx 5.0:
- new action.