JSON API - addTable
- getTemplateVariables
- getTemplateVariablesType
- processTemplate
- removeVariableAudio
- removeVariableImage
- removeVariableText
- removeVariableVideo
- replaceVariableAudio
- replaceVariableHtml
- replaceVariableImage
- replaceVariableList
- replaceVariablePptxFragment
- replaceVariableTable
- replaceVariableText
- replaceVariableVideo
- setTemplateSymbol
addTable
PREMIUM
TRIAL / ADVANCED
Adds tables into the PowerPoint presentation.
Note
You are reading the JSON API documentation. For the PHP API method please go to addTable.
JSON data
| Key | Description |
|---|---|
| contents | Array of cell contents and styles. PptxFragments can be used to add contents |
| text | See addText for text styles. |
| align | left, center, right, justify |
| backgroundColor | HEX color |
| border |
|
| cellMargin |
|
| colspan | HEX color. |
| image | Image path, Base64, or URL. |
| rowspan | |
| textDirection | horz, vert, vert270, wordArtVert, eaVert, mongolianVert, wordArtVertRtl. |
| verticalAlign | top, middle, bottom, topCentered, middleCentered, bottomCentered. |
| wrap | square, none. |
| 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. |
| backgroundColor | HEX color. |
| bandedColumns | Banded columns. Default as false. |
| bandedRows | Banded rows. Default as false. |
| border |
|
| cellMargin |
|
| columnWidths | Column width fix (number) or column width variable (array). If not set, get from the shape size. EMUs (English Metric Unit). |
| descr | Placeholder alt text (descr) value. |
| firstColumn | First column. Default as false. |
| headerRow | Header row. Default as false. |
| lastColumn | Last column. Default as false. |
| rtl | RTL. Default as false. |
| style | Table style name. Using a template, if the table doesn't exist, try to import it from the default base template.
Table styles available in the default base template:
|
| totalRow | Total row. Default as false. |
| height | EMUs (English Metric Unit). |
Code samples
Example #1
Example #2
Release notes
- phppptx 5.0:
- new action.