addTextBoxConnector
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addTextBoxConnector


Inserts a text box connector into the PowerPoint presentation.
Description
public addTextBoxConnector($position, array $connection, array $options = array())
This method inserts text box connectors into the PowerPoint presentation.
Parameters
position
Text box position.
Key | Type | Description |
---|---|---|
coordinateX | int | EMUs (English Metric Unit). Automatically calculated from the start and end connections if not set |
coordinateY | int | EMUs (English Metric Unit). Automatically calculated from the start and end connections if not set |
sizeX | int | EMUs (English Metric Unit). Automatically calculated from the start and end connections if not set |
sizeY | int | EMUs (English Metric Unit). Automatically calculated from the start and end connections if not set |
name | string | Internal name. If not set, a random name is generated. |
order | int | 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. |
Coordinate and size values must be set.
connection
Key | Type | Description |
---|---|---|
start | int or string | id or internal name. |
end | int or string | id or internal name. |
positionStart | string |
Only used when $position is calculated automatically. If not set, the position is detected automatically. |
positionEnd | string |
Only used when $position is calculated automatically. If not set, the position is detected automatically. |
flipH | bool | Flipped horizontally. Default as false. |
flipV | bool | Flipped vertically. Default as false. |
options
Key | Type | Description |
---|---|---|
color | string | FF0000, 00FFFF... |
dash | string |
|
geom | string |
|
lineWidth | int | EMUs (English Metric Unit) |
rotation | int | 60.000ths of a degree. |
shapeGuide | array |
|
tailEnd | string |
|
Exceptions
Method not available.
Not valid connections.
Position not valid.
Release notes
- phppptx 4.0:
- new method.